format: gofmt api.go and engine.go
Format / gofmt (pull_request) Successful in 19s
Format / gofmt (push) Successful in 20s
CI / Build (push) Successful in 29s
CI / Build (pull_request) Successful in 31s
CI / Go Tests (push) Successful in 1m12s
CI / Go Tests (pull_request) Successful in 1m16s
Format / gofmt (pull_request) Successful in 19s
Format / gofmt (push) Successful in 20s
CI / Build (push) Successful in 29s
CI / Build (pull_request) Successful in 31s
CI / Go Tests (push) Successful in 1m12s
CI / Go Tests (pull_request) Successful in 1m16s
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"helix-proxy/internal/auth"
|
"helix-proxy/internal/auth"
|
||||||
"helix-proxy/internal/certificate"
|
"helix-proxy/internal/certificate"
|
||||||
@@ -1303,7 +1303,6 @@ func mountAPI(r chi.Router, st store.Store, eng *proxy.Engine, cm *certificate.M
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func hashAccessListPasswords(al *store.AccessList) error {
|
func hashAccessListPasswords(al *store.AccessList) error {
|
||||||
for i := range al.Items {
|
for i := range al.Items {
|
||||||
pw := al.Items[i].Password
|
pw := al.Items[i].Password
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
package proxy
|
package proxy
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"golang.org/x/crypto/bcrypt"
|
|
||||||
"context"
|
"context"
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"golang.org/x/crypto/bcrypt"
|
||||||
"io"
|
"io"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
"net"
|
"net"
|
||||||
@@ -1252,7 +1252,6 @@ func parseAdvancedConfig(adv string) (reqSets map[string]string, respAdds map[st
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func accessListPasswordOK(stored, provided string) bool {
|
func accessListPasswordOK(stored, provided string) bool {
|
||||||
if stored == "" {
|
if stored == "" {
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user