Skip to content

Commit

Permalink
Fix process search with fakeip
Browse files Browse the repository at this point in the history
  • Loading branch information
arm64v8a authored Aug 13, 2023
1 parent 9f84916 commit 141eebb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions route/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 141eebb

Please sign in to comment.