Improve new field on Event, and refactored the Protocol field with a Protocol enum

This commit is contained in:
Mario
2022-05-10 22:50:29 +02:00
parent 98f9835079
commit 24ff11099c
2 changed files with 26 additions and 11 deletions

View File

@ -28,7 +28,7 @@ func (SSHStrategy *SecureShellStrategy) Init(beelzebubServiceConfiguration parse
tr.TraceEvent(tracer.Event{
Msg: "New SSH Session",
Protocol: beelzebubServiceConfiguration.Protocol,
Protocol: tracer.SSH,
RemoteAddr: sess.RemoteAddr().String(),
Status: tracer.Start,
ID: uuidSession.String(),