updated netclient for egressgatways

This commit is contained in:
afeiszli
2021-07-27 14:48:58 +00:00
parent 10cd3e371c
commit 4710a3db6d
12 changed files with 163 additions and 169 deletions

View File

@@ -40,6 +40,9 @@ func GetPeersList(networkName string) ([]models.PeersResponse, error) {
log.Println(err)
continue
}
if node.IsEgressGateway == "yes" {
peer.EgressGatewayRanges = strings.Join(node.EgressGatewayRanges, ",")
}
if node.Network == networkName && node.IsPending != "yes" {
if node.UDPHolePunch == "yes" && errN == nil {
endpointstring := udppeers[peer.PublicKey]