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