mirror of
https://github.com/bettercap/bettercap
synced 2025-07-12 08:07:00 -07:00
fix: fixed various sniffer parsers
This commit is contained in:
parent
c5baa7a077
commit
b36bf4376c
7 changed files with 9 additions and 18 deletions
|
@ -14,8 +14,8 @@ type SnifferEvent struct {
|
|||
Protocol string
|
||||
Source string
|
||||
Destination string
|
||||
Data interface{}
|
||||
Message string
|
||||
Data interface{}
|
||||
}
|
||||
|
||||
func NewSnifferEvent(t time.Time, proto string, src string, dst string, data interface{}, format string, args ...interface{}) SnifferEvent {
|
||||
|
@ -24,8 +24,8 @@ func NewSnifferEvent(t time.Time, proto string, src string, dst string, data int
|
|||
Protocol: proto,
|
||||
Source: src,
|
||||
Destination: dst,
|
||||
Data: data,
|
||||
Message: fmt.Sprintf(format, args...),
|
||||
Data: data,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue