mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
Merge pull request #720 from alrs/ip-equal
modules/arp_spoof: use net.IP to compare addresses
This commit is contained in:
commit
1957d34ca2
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue