Skip to content

Commit

Permalink
geo redirect: Redirect self-node in case of "127.0.0.1" (not MistHost)
Browse files Browse the repository at this point in the history
When catalyst-api is deployed standalone, then MistHost is not "127.0.0.1" and this redirect does not work
  • Loading branch information
leszko committed Aug 21, 2024
1 parent b6576e7 commit 2a28141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion balancer/mist/mist_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ func (b *MistBalancer) MistUtilLoadBalance(ctx context.Context, stream, lat, lon
return "", err
}
// Special case: rewrite our local node to our public node url
if str == b.config.MistHost {
if str == "127.0.0.1" {
str = b.config.NodeName
}
return str, nil
Expand Down

0 comments on commit 2a28141

Please sign in to comment.