Revert "[feature] net.sniff.http truncate urls option"

This commit is contained in:
Simone Margaritelli 2018-02-05 15:27:23 +01:00 committed by GitHub
commit 8d877e5294
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 45 deletions

View file

@ -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 {