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

This commit is contained in:
wpetit 2023-04-24 13:49:53 +02:00
parent 0d03a708f9
commit e975381b4f
1 changed files with 1 additions and 1 deletions

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
}