Add merged pull requests

This commit is contained in:
Petitoto 2020-05-12 16:38:13 +01:00
commit 090ba11e5a
2 changed files with 2 additions and 1 deletions

View file

@ -252,7 +252,7 @@ func (mod *ArpSpoofer) arpSpoofTargets(saddr net.IP, smac net.HardwareAddr, chec
isSpoofing := false isSpoofing := false
// are we spoofing the gateway IP? // are we spoofing the gateway IP?
if bytes.Equal(saddr, gwIP) { if net.IP.Equal(saddr, gwIP) {
isGW = true isGW = true
// are we restoring the original MAC of the gateway? // are we restoring the original MAC of the gateway?
if !bytes.Equal(smac, gwHW) { if !bytes.Equal(smac, gwHW) {

View file

@ -399,6 +399,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)