Fix UDP domain NAT

This commit is contained in:
世界
2023-10-25 12:00:00 +08:00
parent 23aa8a0543
commit cb2e15f8a7
11 changed files with 138 additions and 13 deletions

View File

@@ -164,7 +164,7 @@ func (h *Direct) DialParallel(ctx context.Context, network string, destination M
}
func (h *Direct) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error) {
ctx, metadata := adapter.AppendContext(ctx)
ctx, metadata := adapter.ExtendContext(ctx)
metadata.Outbound = h.tag
metadata.Destination = destination
switch h.overrideOption {