Explorar o código

Merge pull request #2806 from gravitl/NET-930

get all extclient extra allowed Ips in the network
Abhishek K hai 1 ano
pai
achega
7bd5e7b0eb
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      logic/extpeers.go

+ 4 - 1
logic/extpeers.go

@@ -67,7 +67,10 @@ func GetEgressRangesOnNetwork(client *models.ExtClient) ([]string, error) {
 			}
 		}
 	}
-	extclients := GetGwExtclients(client.IngressGatewayID, client.Network)
+	extclients, err := GetNetworkExtClients(client.Network)
+	if err != nil {
+		return []string{}, err
+	}
 	for _, extclient := range extclients {
 		if extclient.ClientID == client.ClientID {
 			continue