add extra allowed ips of other extclients

This commit is contained in:
abhishek9686 2024-01-17 22:18:43 +05:30
parent 5de091976c
commit 2e5519c388

View file

@ -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
}