diff --git a/internal/auth/authorizations.go b/internal/auth/authorizations.go index 4508fb734..246b021a9 100644 --- a/internal/auth/authorizations.go +++ b/internal/auth/authorizations.go @@ -107,7 +107,7 @@ func QueryAuthd(authd string, remoteIP string, tlsEnabled bool, commonName strin v.Set("common_name", commonName) var endpoint string - if strings.HasPrefix(authd, "http") { + if strings.Contains(authd, "://") { endpoint = fmt.Sprintf("%s?%s", authd, v.Encode()) } else { endpoint = fmt.Sprintf("http://%s/auth?%s", authd, v.Encode())