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())