mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-13 16:44:52 +08:00
fixed hub logic
This commit is contained in:
parent
33df27a721
commit
11b3bc3c09
1 changed files with 3 additions and 2 deletions
|
@ -133,8 +133,9 @@ func GetPeersList(refnode *models.Node) ([]models.Node, error) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
peers = append(peers, peerNode)
|
||||
if !isP2S || peerNode.IsHub == "yes" {
|
||||
peers = append(peers, peerNode)
|
||||
}
|
||||
}
|
||||
}
|
||||
return peers, err
|
||||
|
|
Loading…
Add table
Reference in a new issue