mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
balls
This commit is contained in:
parent
2f2e52393a
commit
99209f9f2e
1 changed files with 1 additions and 7 deletions
|
@ -4,7 +4,6 @@ import (
|
|||
"bytes"
|
||||
"fmt"
|
||||
"net"
|
||||
"runtime"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
|
@ -60,12 +59,7 @@ func NewQueue(iface *bnet.Endpoint) (*Queue, error) {
|
|||
Activities: make(chan Activity),
|
||||
}
|
||||
|
||||
byName := iface.Name()
|
||||
if runtime.GOOS == "windows" {
|
||||
byName = iface.IpAddress
|
||||
}
|
||||
|
||||
q.handle, err = pcap.OpenLive(byName, 1024, true, pcap.BlockForever)
|
||||
q.handle, err = pcap.OpenLive(iface.Name(), 1024, true, pcap.BlockForever)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue