From 42014eea2321ac6df900553d1edefb34f9045871 Mon Sep 17 00:00:00 2001 From: fatedier Date: Fri, 3 Jan 2020 11:39:44 +0800 Subject: [PATCH] improve xtcp, fix #1585 --- client/proxy/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/proxy/proxy.go b/client/proxy/proxy.go index c51364f..c9ef8dd 100644 --- a/client/proxy/proxy.go +++ b/client/proxy/proxy.go @@ -349,7 +349,7 @@ func (pxy *XtcpProxy) InWorkConn(conn net.Conn, m *msg.StartWorkConn) { lConn.WriteToUDP(sidBuf[:n], uAddr) - kcpConn, err := frpNet.NewKcpConnFromUdp(lConn, false, natHoleRespMsg.VisitorAddr) + kcpConn, err := frpNet.NewKcpConnFromUdp(lConn, false, uAddr.String()) if err != nil { xl.Error("create kcp connection from udp connection error: %v", err) return