This commit is contained in:
esrrhs committed 2018-12-19 15:00:30 +08:00
1 parent 27cf425b48
commit 11b15f071e
3 files changed
+26 -9

No files matched your search

+6
View File
@@ -59,6 +59,12 @@ func (p *Server) Run() {
func (p *Server) processPacket(packet *Packet) {
if packet.msgType == PING {
fmt.Printf("pong from %s\n", packet.src.String())
sendICMP(*p.conn, packet.src, "", "", (uint32)(DATA), packet.data, packet.rproto, 0)
return
}
fmt.Printf("processPacket %s %s %d\n", packet.id, packet.src.String(), len(packet.data))
now := time.Now()