mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 18:57:17 -07:00
fix: Add missing NormalizeMac call while arp_spoof getMac. (ref #10)
This commit is contained in:
parent
3ce75555da
commit
4679521d9a
3 changed files with 4 additions and 3 deletions
|
@ -93,6 +93,7 @@ func (p *ArpSpoofer) getMAC(ip net.IP, probe bool) (net.HardwareAddr, error) {
|
|||
return nil, fmt.Errorf("Could not find hardware address for %s.", ip.String())
|
||||
}
|
||||
|
||||
mac = network.NormalizeMac(mac)
|
||||
hw, err = net.ParseMAC(mac)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("Error while parsing hardware address '%s' for %s: %s", mac, ip.String(), err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue