mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-08 11:44:13 +08:00
Fix process search with fakeip
This commit is contained in:
parent
9f94b21687
commit
d14170348d
@ -636,6 +636,7 @@ func (r *Router) RouteConnection(ctx context.Context, conn net.Conn, metadata ad
|
|||||||
if !loaded {
|
if !loaded {
|
||||||
return E.New("missing fakeip context")
|
return E.New("missing fakeip context")
|
||||||
}
|
}
|
||||||
|
metadata.OriginDestination = metadata.Destination
|
||||||
metadata.Destination = M.Socksaddr{
|
metadata.Destination = M.Socksaddr{
|
||||||
Fqdn: domain,
|
Fqdn: domain,
|
||||||
Port: metadata.Destination.Port,
|
Port: metadata.Destination.Port,
|
||||||
@ -746,6 +747,7 @@ func (r *Router) RoutePacketConnection(ctx context.Context, conn N.PacketConn, m
|
|||||||
return E.New("missing fakeip context")
|
return E.New("missing fakeip context")
|
||||||
}
|
}
|
||||||
originAddress = metadata.Destination
|
originAddress = metadata.Destination
|
||||||
|
metadata.OriginDestination = metadata.Destination
|
||||||
metadata.Destination = M.Socksaddr{
|
metadata.Destination = M.Socksaddr{
|
||||||
Fqdn: domain,
|
Fqdn: domain,
|
||||||
Port: metadata.Destination.Port,
|
Port: metadata.Destination.Port,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user