This commit is contained in:
Bel LaPointe
2026-09-09 07:29:53 -07:00
parent 29a317714f
commit 1f76e3ff2f
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -175,8 +175,7 @@ func (c Config) basicAuth(w http.ResponseWriter, r *http.Request) bool {
func (c Config) endpoint(r *http.Request) Endpoint {
key := c.key(r)
domain := strings.TrimPrefix(r.Host, key)
log.Printf("lookup %s.%s", domain, key)
domain := strings.Split(strings.TrimPrefix(r.Host, key), ":")[0]
m, ok := c.Domains[domain]
if !ok {
return Endpoint{}