mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-30 07:40:25 +08:00
add some logs
This commit is contained in:
@@ -69,7 +69,7 @@ func (m *Me) listen() (conn *net.UDPConn, err error) {
|
|||||||
logrus.Infoln("[link] deliver to pipe of me")
|
logrus.Infoln("[link] deliver to pipe of me")
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
break
|
logrus.Warnln("[link] recv unknown proto:", packet.Proto)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logrus.Infoln("[link] drop invalid packet")
|
logrus.Infoln("[link] drop invalid packet")
|
||||||
@@ -82,6 +82,8 @@ func (m *Me) listen() (conn *net.UDPConn, err error) {
|
|||||||
} else {
|
} else {
|
||||||
logrus.Warnln("[link] refused to trans packet to", packet.Dst.String()+":"+strconv.Itoa(int(packet.DstPort)))
|
logrus.Warnln("[link] refused to trans packet to", packet.Dst.String()+":"+strconv.Itoa(int(packet.DstPort)))
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
logrus.Warnln("[link] packet dst", packet.Dst.String()+":"+strconv.Itoa(int(packet.DstPort)), "is not in peers")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logrus.Warnln("[link] packet to", packet.Dst, "is refused")
|
logrus.Warnln("[link] packet to", packet.Dst, "is refused")
|
||||||
|
|||||||
Reference in New Issue
Block a user