From 27aa026568cac34c450eb0ccc4a7d8ea961b5b22 Mon Sep 17 00:00:00 2001 From: Skyxim Date: Wed, 4 May 2022 20:13:12 +0800 Subject: [PATCH] fix: use actual metadata --- tunnel/tunnel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tunnel/tunnel.go b/tunnel/tunnel.go index 315fae5e..e0515e11 100644 --- a/tunnel/tunnel.go +++ b/tunnel/tunnel.go @@ -271,7 +271,7 @@ func handleUDPConn(packet *inbound.PacketAdapter) { } pCtx.InjectPacketConn(rawPc) - actualProxy := proxy.Unwrap(nil) + actualProxy := proxy.Unwrap(metadata) if actualProxy != nil { if dst, _, err := net.SplitHostPort(actualProxy.Addr()); err == nil { metadata.RemoteDst = dst