From bc05ed56fca556750c1ee82a8cd52c6f3535fb03 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Tue, 14 Apr 2020 09:22:58 -0700 Subject: [PATCH] modules/arp_spoof: use net.IP to compare addresses --- modules/arp_spoof/arp_spoof.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/arp_spoof/arp_spoof.go b/modules/arp_spoof/arp_spoof.go index 9d3a9cf5..9c3d7392 100644 --- a/modules/arp_spoof/arp_spoof.go +++ b/modules/arp_spoof/arp_spoof.go @@ -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) {