fix(controller,app): correctly detect ip address for cookie domain resolution
All checks were successful
arcad/emissary/pipeline/head This commit looks good

This commit is contained in:
wpetit 2023-04-24 13:49:53 +02:00
parent 0d03a708f9
commit e975381b4f

View File

@ -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
}