Merge pull request #1023 from half-duplex/ndp-spoof-ip-fmt

ndp.spoof: fix "couldn't get MAC" format string
This commit is contained in:
Simone Margaritelli 2023-07-25 14:34:17 +02:00 committed by GitHub
commit bdc389eaee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,7 +182,7 @@ func (mod *NDPSpoofer) getTargets(probe bool) map[string]net.HardwareAddr {
if hw, err := mod.Session.FindMAC(ip, probe); err == nil { if hw, err := mod.Session.FindMAC(ip, probe); err == nil {
targets[ip.String()] = hw targets[ip.String()] = hw
} else { } else {
mod.Info("couldn't get MAC for ip=%s, put it into the neighbour table manually e.g. ping -6") mod.Info("couldn't get MAC for ip=%s, put it into the neighbour table manually e.g. ping -6", ip)
} }
} }