We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ea1cda5 + bd39cf4 commit f563b67Copy full SHA for f563b67
server/util.go
@@ -82,7 +82,7 @@ func extractIPAddress(r *http.Request, behindProxy bool) netip.Addr {
82
ip, err = netip.ParseAddr(remoteAddr)
83
if err != nil {
84
ip = netip.IPv4Unspecified()
85
- if remoteAddr != "@" || !behindProxy { // RemoteAddr is @ when unix socket is used
+ if remoteAddr != "@" && !behindProxy { // RemoteAddr is @ when unix socket is used
86
logr(r).Err(err).Warn("unable to parse IP (%s), new visitor with unspecified IP (0.0.0.0) created", remoteAddr)
87
}
88
0 commit comments