mirror of
https://github.com/bettercap/bettercap.git
synced 2025-03-12 04:36:03 -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
@ -378,8 +378,9 @@ func (p *HTTPProxy) httpsWorker() error {
|
||||
Opaque: hostname,
|
||||
Host: net.JoinHostPort(hostname, "443"),
|
||||
},
|
||||
Host: hostname,
|
||||
Header: make(http.Header),
|
||||
Host: hostname,
|
||||
Header: make(http.Header),
|
||||
RemoteAddr: c.RemoteAddr().String(),
|
||||
}
|
||||
p.Proxy.ServeHTTP(dumbResponseWriter{tlsConn}, req)
|
||||
}(c)
|
||||
|
Loading…
x
Reference in New Issue
Block a user