fix: UDP packet should not return io.EOF

This commit is contained in:
wwqgtxx
2023-05-15 19:06:58 +08:00
parent 872a28a5eb
commit 1a9104c003
4 changed files with 11 additions and 8 deletions

View File

@ -55,7 +55,9 @@ func handleUDPToLocal(packet C.UDPPacket, pc N.EnhancePacketConn, key string, oA
}
_, err = packet.WriteBack(data, fromUDPAddr)
put()
if put != nil {
put()
}
if err != nil {
return
}