mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
new: new -pcap-buf-size option to set a custom pcap buffer size (closes #896)
This commit is contained in:
parent
59dce4ced6
commit
81ae731b9f
3 changed files with 10 additions and 2 deletions
|
@ -127,6 +127,10 @@ func New() (*Session, error) {
|
|||
}
|
||||
}
|
||||
|
||||
if bufSize := *s.Options.PcapBufSize; bufSize != -1 {
|
||||
network.CAPTURE_DEFAULTS.Bufsize = bufSize
|
||||
}
|
||||
|
||||
if s.Env, err = NewEnvironment(*s.Options.EnvFile); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue