fix: use actual metadata

This commit is contained in:
Skyxim 2022-05-04 20:13:12 +08:00
parent 9969e1706e
commit 27aa026568

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