fix: fixed various sniffer parsers

This commit is contained in:
evilsocket 2018-02-23 12:25:14 +01:00
parent c5baa7a077
commit b36bf4376c
7 changed files with 9 additions and 18 deletions

View file

@ -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,
}
}