mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
Fix problem with the client ip in https.proxy as described in https://github.com/bettercap/caplets/issues/45
This commit is contained in:
parent
e00ba3268c
commit
a01e058d82
1 changed files with 3 additions and 2 deletions
|
@ -380,6 +380,7 @@ func (p *HTTPProxy) httpsWorker() error {
|
||||||
},
|
},
|
||||||
Host: hostname,
|
Host: hostname,
|
||||||
Header: make(http.Header),
|
Header: make(http.Header),
|
||||||
|
RemoteAddr: c.RemoteAddr().String(),
|
||||||
}
|
}
|
||||||
p.Proxy.ServeHTTP(dumbResponseWriter{tlsConn}, req)
|
p.Proxy.ServeHTTP(dumbResponseWriter{tlsConn}, req)
|
||||||
}(c)
|
}(c)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue