mirror of
https://github.com/bettercap/bettercap
synced 2025-07-06 04:52:10 -07:00
fix: setting RemoteAddr field of a proxied request
This commit is contained in:
parent
1f3c009d15
commit
c26f3ea1bb
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue