From dd2b4f9476b952cb43dcba5f16f11fb7e48372ba Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Sun, 2 Oct 2022 20:08:41 +0800 Subject: [PATCH] chore: pure udp metadata --- tunnel/tunnel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tunnel/tunnel.go b/tunnel/tunnel.go index b83da180..aec6da01 100644 --- a/tunnel/tunnel.go +++ b/tunnel/tunnel.go @@ -269,7 +269,7 @@ func handleUDPConn(packet *inbound.PacketAdapter) { ctx, cancel := context.WithTimeout(context.Background(), C.DefaultUDPTimeout) defer cancel() - rawPc, err := proxy.ListenPacketContext(ctx, metadata) + rawPc, err := proxy.ListenPacketContext(ctx, metadata.Pure()) if err != nil { if rule == nil { log.Warnln("[UDP] dial %s to %s error: %s", proxy.Name(), metadata.RemoteAddress(), err.Error())