misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-02-15 17:09:39 +01:00
commit dd5822cfe1

View file

@ -162,6 +162,10 @@ func (p *ArpSpoofer) pktRouter(eth *layers.Ethernet, ip4 *layers.IPv4, pkt gopac
}
log.Warning("Got packet to route: %s\n", pkt.String())
copy(eth.DstMAC, p.Session.Gateway.HW)
log.Warning("After: %s\n", pkt.String())
}
}