fix xtcp cmd

This commit is contained in:
fatedier
2019-03-03 23:44:44 +08:00
parent 3cf83f57a8
commit ba45d29b7c
2 changed files with 4 additions and 2 deletions

View File

@ -280,6 +280,8 @@ func (sv *XtcpVisitor) handleConn(userConn frpNet.Conn) {
sv.Error("listen on visitorConn's local adress error: %v", err)
return
}
defer lConn.Close()
lConn.SetReadDeadline(time.Now().Add(5 * time.Second))
sidBuf := pool.GetBuf(1024)
n, _, err = lConn.ReadFromUDP(sidBuf)