Skip to content

Commit

Permalink
check for pro, if host is getting relayed
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek9686 committed Jan 23, 2024
1 parent 17a6392 commit a446c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logic/peers.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func GetPeerUpdateForHost(network string, host *models.Host, allNodes []models.N
hostPeerUpdate.EgressRoutes = append(hostPeerUpdate.EgressRoutes, getExtpeersExtraRoutes(peer.Network)...)
}
_, isFailOverPeer := node.FailOverPeers[peer.ID.String()]
if (node.IsRelayed && node.RelayedBy != peer.ID.String()) ||
if servercfg.IsPro && (node.IsRelayed && node.RelayedBy != peer.ID.String()) ||
(peer.IsRelayed && peer.RelayedBy != node.ID.String()) || isFailOverPeer {
// if node is relayed and peer is not the relay, set remove to true
if _, ok := peerIndexMap[peerHost.PublicKey.String()]; ok {
Expand Down

0 comments on commit a446c50

Please sign in to comment.