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
|
@ -23,10 +23,6 @@ func NewSniffer(s *session.Session) *Sniffer {
|
|||
Stats: nil,
|
||||
}
|
||||
|
||||
sniff.AddParam(session.NewBoolParameter("net.sniff.truncate",
|
||||
"true",
|
||||
"If true, will truncate long request URLs so user-agent fits on same line when possible, otherwise extra verbose / full URLs."))
|
||||
|
||||
sniff.AddParam(session.NewBoolParameter("net.sniff.verbose",
|
||||
"true",
|
||||
"If true, will print every captured packet, otherwise only selected ones."))
|
||||
|
@ -116,7 +112,7 @@ func (s Sniffer) isLocalPacket(packet gopacket.Packet) bool {
|
|||
}
|
||||
|
||||
func (s *Sniffer) onPacketMatched(pkt gopacket.Packet) {
|
||||
if mainParser(pkt, s.Ctx.Verbose, s.Ctx.Truncate) == true {
|
||||
if mainParser(pkt, s.Ctx.Verbose) == true {
|
||||
s.Stats.NumDumped++
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue