mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
Revert "[feature] net.sniff.http truncate urls option"
This commit is contained in:
parent
4aa63c77e9
commit
8d877e5294
6 changed files with 11 additions and 45 deletions
|
@ -16,7 +16,6 @@ import (
|
|||
type SnifferContext struct {
|
||||
Handle *pcap.Handle
|
||||
DumpLocal bool
|
||||
Truncate bool
|
||||
Verbose bool
|
||||
Filter string
|
||||
Expression string
|
||||
|
@ -43,10 +42,6 @@ func (s *Sniffer) GetContext() (error, *SnifferContext) {
|
|||
return err, ctx
|
||||
}
|
||||
|
||||
if err, ctx.Truncate = s.BoolParam("net.sniff.truncate"); err != nil {
|
||||
return err, ctx
|
||||
}
|
||||
|
||||
if err, ctx.Filter = s.StringParam("net.sniff.filter"); err != nil {
|
||||
return err, ctx
|
||||
} else if ctx.Filter != "" {
|
||||
|
@ -82,7 +77,6 @@ func NewSnifferContext() *SnifferContext {
|
|||
return &SnifferContext{
|
||||
Handle: nil,
|
||||
DumpLocal: false,
|
||||
Truncate: true,
|
||||
Verbose: true,
|
||||
Filter: "",
|
||||
Expression: "",
|
||||
|
@ -105,12 +99,6 @@ func (c *SnifferContext) Log(sess *session.Session) {
|
|||
log.Info("Skip local packets : %s", yes)
|
||||
}
|
||||
|
||||
if c.Truncate {
|
||||
log.Info("Truncate : %s", yes)
|
||||
} else {
|
||||
log.Info("Truncate : %s", no)
|
||||
}
|
||||
|
||||
if c.Verbose {
|
||||
log.Info("Verbose : %s", yes)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue