wip: fix unix socket error (#2897)
This commit is contained in:
parent
a6b0e58380
commit
e9b0f3c54e
1 changed files with 4 additions and 0 deletions
|
@ -342,6 +342,10 @@ func NewParsedRequestFromRequest(r *http.Request, logger *logrus.Entry) (ParsedR
|
|||
}
|
||||
|
||||
var remoteAddrNormalized string
|
||||
if r.RemoteAddr == "@" {
|
||||
r.RemoteAddr = "127.0.0.1:65535"
|
||||
}
|
||||
// TODO we need to implement forwrded headers
|
||||
host, _, err := net.SplitHostPort(r.RemoteAddr)
|
||||
if err != nil {
|
||||
log.Errorf("Invalid appsec remote IP source %v: %s", r.RemoteAddr, err.Error())
|
||||
|
|
Loading…
Reference in a new issue