modules/arp_spoof: use net.IP to compare addresses

This commit is contained in:
Lars Lehtonen 2020-04-14 09:22:58 -07:00
commit bc05ed56fc
No known key found for this signature in database
GPG key ID: 8137D474EBCB04F2

View file

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