fix: Add missing NormalizeMac call while arp_spoof getMac. (ref #10)

This commit is contained in:
onura 2018-01-25 15:51:21 +03:00
commit 4679521d9a
3 changed files with 4 additions and 3 deletions

View file

@ -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)