mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-08 09:32:06 +08:00
Fix override_port
in direct inbound
This commit is contained in:
parent
cb68a40c43
commit
5fdc051a08
@ -94,7 +94,7 @@ func (i *Inbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata a
|
|||||||
case 2:
|
case 2:
|
||||||
destination.Addr = i.overrideDestination.Addr
|
destination.Addr = i.overrideDestination.Addr
|
||||||
case 3:
|
case 3:
|
||||||
destination.Port = metadata.Destination.Port
|
destination.Port = i.overrideDestination.Port
|
||||||
}
|
}
|
||||||
metadata.Destination = destination
|
metadata.Destination = destination
|
||||||
if i.overrideOption != 0 {
|
if i.overrideOption != 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user