From ceaf9ca99ecc00d70c5aab20bbdfcd1d035698cc Mon Sep 17 00:00:00 2001 From: Fangliding Date: Tue, 26 May 2026 16:21:23 +0800 Subject: [PATCH] reverse --- proxy/socks/protocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/socks/protocol.go b/proxy/socks/protocol.go index 723311a7..19efa444 100644 --- a/proxy/socks/protocol.go +++ b/proxy/socks/protocol.go @@ -210,7 +210,7 @@ func (s *ServerSession) handshake5(nMethod byte, reader io.Reader, writer net.Co responsePort = net.Port(udpHub.LocalAddr().(*net.UDPAddr).Port) expectedRemoteIP, _, _ := net.SplitHostPort(writer.RemoteAddr().String()) tempUDPConn = NewTempUDPConn(udpHub, writer, expectedRemoteIP) - if request.Address.IP().IsUnspecified() { + if !request.Address.IP().IsUnspecified() { // only specified an IP without port if request.Port == 0 { tempUDPConn.ExpectedRemoteIP = request.Address.String()