From 5cb3e678cecce6eb03bab731cf0eda152aab29cb Mon Sep 17 00:00:00 2001 From: RPRX <63339210+RPRX@users.noreply.github.com> Date: Tue, 26 May 2026 09:06:46 +0000 Subject: [PATCH] Update temp_udp_listen.go --- proxy/socks/temp_udp_listen.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/socks/temp_udp_listen.go b/proxy/socks/temp_udp_listen.go index c3f7c4e3..cdcbf993 100644 --- a/proxy/socks/temp_udp_listen.go +++ b/proxy/socks/temp_udp_listen.go @@ -31,7 +31,8 @@ type TempUDPConn struct { func (c *TempUDPConn) Read(b []byte) (n int, err error) { c.timer.Update() - for var remote net.Addr; ; { + var remote net.Addr + for { n, remote, err = c.PacketConn.ReadFrom(b) if err != nil { return