Enable promisc
This commit is contained in:
parent
59960986c9
commit
ed877ae731
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ import (
|
|||
|
||||
// StartPcap opens an AppleTalk and AARP listening session on a network device.
|
||||
func StartPcap(device string) (*pcap.Handle, error) {
|
||||
handle, err := pcap.OpenLive(device, 4096, false, pcap.BlockForever)
|
||||
handle, err := pcap.OpenLive(device, 4096, true, pcap.BlockForever)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("opening device %q: %w", device, err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue