From bb977280e7203d40b237859ff1f7f94d6aba0be5 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+RPRX@users.noreply.github.com> Date: Wed, 17 Jun 2026 14:16:04 +0000 Subject: [PATCH] Update server.go --- proxy/socks/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/socks/server.go b/proxy/socks/server.go index 576387c7..e1d34a60 100644 --- a/proxy/socks/server.go +++ b/proxy/socks/server.go @@ -234,8 +234,8 @@ func (s *Server) handleUDPPayload(ctx context.Context, conn stat.Connection, dis newInbound.Source = net.DestinationFromAddr(conn.RemoteAddr()) newInbound.Local = net.DestinationFromAddr(conn.LocalAddr()) inbound = &newInbound - ctx = session.ContextWithInbound(ctx, &newInbound) - errors.LogInfo(ctx, "client UDP connection from ", newInbound.Source) + ctx = session.ContextWithInbound(ctx, inbound) + errors.LogInfo(ctx, "client UDP connection from ", inbound.Source) } })