mirror of
https://github.com/lwch/natpass
synced 2025-10-13 00:33:41 +08:00
修改log
This commit is contained in:
@@ -195,11 +195,14 @@ func (h *Handler) msgHook(msg *network.Msg, from, to *client) {
|
||||
msg.GetLinkId(), from.parent.id, from.idx, to.parent.id, to.idx, rep.GetMsg())
|
||||
}
|
||||
// forward data
|
||||
case network.Msg_forward,
|
||||
network.Msg_shell_data:
|
||||
case network.Msg_forward:
|
||||
data := msg.GetXData()
|
||||
logging.Debug("link %s forward %d bytes from %s-%d to %s-%d",
|
||||
msg.GetLinkId(), len(data.GetData()), from.parent.id, from.idx, to.parent.id, to.idx)
|
||||
case network.Msg_shell_data:
|
||||
data := msg.GetSdata()
|
||||
logging.Debug("shell %s forward %d bytes from %s-%d to %s-%d",
|
||||
msg.GetLinkId(), len(data.GetData()), from.parent.id, from.idx, to.parent.id, to.idx)
|
||||
// shell
|
||||
case network.Msg_shell_resize:
|
||||
data := msg.GetSresize()
|
||||
|
Reference in New Issue
Block a user