mirror of
https://github.com/lwch/natpass
synced 2025-10-23 12:29:21 +08:00
修改log
This commit is contained in:
@@ -146,7 +146,14 @@ func (h *Handler) onMessage(from *client, conn *network.Conn, msg *network.Msg,
|
||||
return
|
||||
}
|
||||
h.msgHook(msg, from, cli, size)
|
||||
cli.writeMessage(msg)
|
||||
err := cli.writeMessage(msg)
|
||||
if err != nil {
|
||||
logging.Error("write message %s from %s-%d to %s-%d: %v",
|
||||
msg.GetXType().String(),
|
||||
msg.GetFrom(), msg.GetFromIdx(),
|
||||
msg.GetTo(), msg.GetToIdx(),
|
||||
err)
|
||||
}
|
||||
}
|
||||
|
||||
func (h *Handler) addLink(name, id string, t network.ConnectRequestType, from, to *client) {
|
||||
|
Reference in New Issue
Block a user