mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-10 00:30:37 +08:00
add extra allowed ips of other extclients
This commit is contained in:
parent
5de091976c
commit
2e5519c388
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
return result, nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue