Skip to content

Commit

Permalink
print with --hex mode.
Browse files Browse the repository at this point in the history
fix #416

Signed-off-by: cfc4n <cfc4n.cs@gmail.com>
  • Loading branch information
cfc4n committed Nov 18, 2023
1 parent 0640e03 commit 7136c31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion user/module/probe_openssl.go
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,11 @@ func (m *MOpenSSLProbe) dumpSslData(eventStruct *event.SSLDataEvent) {
eventStruct.Addr = addr
}
//m.processor.Write(eventStruct)
m.logger.Println(eventStruct)
if m.conf.GetHex() {
m.logger.Println(eventStruct.StringHex())
} else {
m.logger.Println(eventStruct.String())
}
}

func init() {
Expand Down

0 comments on commit 7136c31

Please sign in to comment.