diff --git a/modules/http_proxy/http_proxy_js_request.go b/modules/http_proxy/http_proxy_js_request.go index f90a0885..76ed8f09 100644 --- a/modules/http_proxy/http_proxy_js_request.go +++ b/modules/http_proxy/http_proxy_js_request.go @@ -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) }