mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-07 01:36:23 +08:00
add extra allowed ips of other extclients
This commit is contained in:
@@ -67,6 +67,13 @@ func GetEgressRangesOnNetwork(client *models.ExtClient) ([]string, error) {
|
||||
}
|
||||
}
|
||||
}
|
||||
extclients := GetGwExtclients(client.IngressGatewayID, client.Network)
|
||||
for _, extclient := range extclients {
|
||||
if extclient.ClientID == client.ClientID {
|
||||
continue
|
||||
}
|
||||
result = append(result, extclient.ExtraAllowedIPs...)
|
||||
}
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user