Fix missing inbound options

This commit is contained in:
世界
2024-11-15 17:21:33 +08:00
parent 94abfdcab2
commit 0c7c64c2d4
6 changed files with 14 additions and 0 deletions

View File

@@ -101,6 +101,8 @@ func (t *TProxy) NewPacketConnectionEx(ctx context.Context, conn N.PacketConn, s
var metadata adapter.InboundContext
metadata.Inbound = t.Tag()
metadata.InboundType = t.Type()
metadata.InboundDetour = t.listener.ListenOptions().Detour
metadata.InboundOptions = t.listener.ListenOptions().InboundOptions
metadata.Source = source
metadata.Destination = destination
metadata.OriginDestination = t.listener.UDPAddr()