mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 05:53:20 -07:00
Merge pull request #722 from stef03/https-proxy-client-ip
Fix problem with the client ip in https.proxy
This commit is contained in:
commit
9aab1295ca
1 changed files with 3 additions and 2 deletions
|
@ -378,8 +378,9 @@ func (p *HTTPProxy) httpsWorker() error {
|
||||||
Opaque: hostname,
|
Opaque: hostname,
|
||||||
Host: net.JoinHostPort(hostname, "443"),
|
Host: net.JoinHostPort(hostname, "443"),
|
||||||
},
|
},
|
||||||
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