fix: setting RemoteAddr field of a proxied request

This commit is contained in:
evilsocket 2019-06-13 13:56:31 +02:00
parent 1f3c009d15
commit c26f3ea1bb
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -194,6 +194,8 @@ func (j *JSRequest) ToRequest() (req *http.Request) {
}
}
req.RemoteAddr = j.Client["IP"]
if !hadType && j.ContentType != "" {
req.Header.Set("Content-Type", j.ContentType)
}