diff --git a/internal/agent/controller/app/server.go b/internal/agent/controller/app/server.go index e403dba..f7cfde7 100644 --- a/internal/agent/controller/app/server.go +++ b/internal/agent/controller/app/server.go @@ -143,7 +143,7 @@ func getCookieDomain(r *http.Request) (string, error) { } // If host is an IP address - if wildcard.Match(host, "*.*.*.*") { + if ip := net.ParseIP(host); ip != nil { return "", nil }