Fix process search with fakeip

This commit is contained in:
armv9 2023-08-13 17:38:27 +09:00 committed by 世界
parent 9f94b21687
commit d14170348d
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -636,6 +636,7 @@ func (r *Router) RouteConnection(ctx context.Context, conn net.Conn, metadata ad
if !loaded {
return E.New("missing fakeip context")
}
metadata.OriginDestination = metadata.Destination
metadata.Destination = M.Socksaddr{
Fqdn: domain,
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")
}
originAddress = metadata.Destination
metadata.OriginDestination = metadata.Destination
metadata.Destination = M.Socksaddr{
Fqdn: domain,
Port: metadata.Destination.Port,