mirror of
https://github.com/bettercap/bettercap
synced 2025-07-08 05:51:37 -07:00
golint says don't use underscores in Go names; var from_hw should be fromHw
This commit is contained in:
parent
7996fc40ff
commit
024f978c3a
1 changed files with 2 additions and 2 deletions
|
@ -20,9 +20,9 @@ func findMAC(s *session.Session, ip net.IP, probe bool) (net.HardwareAddr, error
|
||||||
mac, err = network.ArpLookup(s.Interface.Name(), ip.String(), false)
|
mac, err = network.ArpLookup(s.Interface.Name(), ip.String(), false)
|
||||||
if err != nil && probe {
|
if err != nil && probe {
|
||||||
from := s.Interface.IP
|
from := s.Interface.IP
|
||||||
from_hw := s.Interface.HW
|
fromHw := s.Interface.HW
|
||||||
|
|
||||||
if err, probe := packets.NewUDPProbe(from, from_hw, ip, 139); err != nil {
|
if err, probe := packets.NewUDPProbe(from, fromHw, ip, 139); err != nil {
|
||||||
log.Error("Error while creating UDP probe packet for %s: %s", ip.String(), err)
|
log.Error("Error while creating UDP probe packet for %s: %s", ip.String(), err)
|
||||||
} else {
|
} else {
|
||||||
s.Queue.Send(probe)
|
s.Queue.Send(probe)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue