fix: use actual metadata

This commit is contained in:
gVisor bot 2022-05-04 20:13:12 +08:00
parent b1c3a102cf
commit d446e0f316

View file

@ -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