mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
more lint driven refactoring
This commit is contained in:
parent
7919cda5ec
commit
0de6f3a76e
57 changed files with 168 additions and 241 deletions
|
@ -73,7 +73,7 @@ func (d *Discovery) runDiff(cache network.ArpTable) {
|
|||
var rem network.ArpTable = make(network.ArpTable)
|
||||
|
||||
d.Session.Lan.EachHost(func(mac string, e *network.Endpoint) {
|
||||
if _, found := cache[mac]; found == false {
|
||||
if _, found := cache[mac]; !found {
|
||||
rem[mac] = e.IpAddress
|
||||
}
|
||||
})
|
||||
|
@ -100,7 +100,6 @@ func (d *Discovery) Start() error {
|
|||
return d.SetRunning(true, func() {
|
||||
every := time.Duration(1) * time.Second
|
||||
iface := d.Session.Interface.Name()
|
||||
|
||||
for d.Running() {
|
||||
if table, err := network.ArpUpdate(iface); err != nil {
|
||||
log.Error("%s", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue