udp proxy: fix #652

This commit is contained in:
fatedier
2018-03-19 20:22:15 +08:00
parent 9e8980429f
commit e9241aeb94
2 changed files with 5 additions and 2 deletions

View File

@@ -82,6 +82,7 @@ func Forwarder(dstAddr *net.UDPAddr, readCh <-chan *msg.UdpPacket, sendCh chan<-
mu.Lock()
delete(udpConnMap, addr)
mu.Unlock()
udpConn.Close()
}()
buf := pool.GetBuf(1500)