Compare commits
1 Commits
v2023.4.24
...
v2023.4.24
Author | SHA1 | Date | |
---|---|---|---|
e975381b4f |
@ -143,7 +143,7 @@ func getCookieDomain(r *http.Request) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If host is an IP address
|
// If host is an IP address
|
||||||
if wildcard.Match(host, "*.*.*.*") {
|
if ip := net.ParseIP(host); ip != nil {
|
||||||
return "", nil
|
return "", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user