From a2cfd479411fb5582e92529d5092ac825cf1e2a3 Mon Sep 17 00:00:00 2001 From: kony <2312708932@qq.com> Date: Tue, 16 Sep 2025 16:59:52 +0800 Subject: [PATCH] =?UTF-8?q?local=E7=AB=AF=E8=AE=BF=E9=97=AEremote=E7=AB=AF?= =?UTF-8?q?13389=E7=AB=AF=E5=8F=A3=EF=BC=8C=E9=87=8D=E5=AE=9A=E5=90=91?= =?UTF-8?q?=E5=88=B03389=E7=AB=AF=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proxy/proxy_r.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/proxy/proxy_r.go b/proxy/proxy_r.go index 66c305a..6bcc1fc 100644 --- a/proxy/proxy_r.go +++ b/proxy/proxy_r.go @@ -41,7 +41,7 @@ func ProcessProxyServer(stun_quic_conn quic.Connection) { remotePort := binary.BigEndian.Uint16(buf[head_len-2 : head_len]) switch buf[0] { - case 0x00: + case 0x00: // TCP switch remotePort { case 1080: go func() { @@ -49,6 +49,9 @@ func ProcessProxyServer(stun_quic_conn quic.Connection) { socks5_svr.ServeConnQuic(new_quic_stream, remoteAddr.IP, remoteAddr.Port) }() default: + if remotePort == 13389 { + remotePort = 3389 + } new_conn, err := net.DialTCP("tcp4", nil, &net.TCPAddr{ IP: net.IPv4(127, 0, 0, 1), Port: int(remotePort), @@ -58,7 +61,7 @@ func ProcessProxyServer(stun_quic_conn quic.Connection) { go ForwardQ2T(new_quic_stream, new_conn, stun_quic_conn) } } - case 0x01: + case 0x01: // UDP switch remotePort { //case 1080: