fix: use actual metadata
This commit is contained in:
parent
9969e1706e
commit
27aa026568
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ func handleUDPConn(packet *inbound.PacketAdapter) {
|
||||||
}
|
}
|
||||||
pCtx.InjectPacketConn(rawPc)
|
pCtx.InjectPacketConn(rawPc)
|
||||||
|
|
||||||
actualProxy := proxy.Unwrap(nil)
|
actualProxy := proxy.Unwrap(metadata)
|
||||||
if actualProxy != nil {
|
if actualProxy != nil {
|
||||||
if dst, _, err := net.SplitHostPort(actualProxy.Addr()); err == nil {
|
if dst, _, err := net.SplitHostPort(actualProxy.Addr()); err == nil {
|
||||||
metadata.RemoteDst = dst
|
metadata.RemoteDst = dst
|
||||||
|
|
Loading…
Reference in a new issue