Commit d2ed58fe authored by Eric's avatar Eric

add protocol field for session

parent 84384cd9
...@@ -189,6 +189,7 @@ func (s *SwitchSession) MapData() map[string]interface{} { ...@@ -189,6 +189,7 @@ func (s *SwitchSession) MapData() map[string]interface{} {
"org_id": s.p.Asset.OrgID, "org_id": s.p.Asset.OrgID,
"login_from": s.p.UserConn.LoginFrom(), "login_from": s.p.UserConn.LoginFrom(),
"system_user": s.p.SystemUser.Username, "system_user": s.p.SystemUser.Username,
"protocol": s.p.SystemUser.Protocol,
"remote_addr": s.p.UserConn.RemoteAddr(), "remote_addr": s.p.UserConn.RemoteAddr(),
"is_finished": s.finished, "is_finished": s.finished,
"date_start": s.DateStart, "date_start": s.DateStart,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment