mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-27 02:41:26 +08:00
initalize extraallowed ips field
This commit is contained in:
@@ -186,6 +186,9 @@ func CreateExtClient(extclient *models.ExtClient) error {
|
||||
} else if len(extclient.PrivateKey) == 0 && len(extclient.PublicKey) > 0 {
|
||||
extclient.PrivateKey = "[ENTER PRIVATE KEY]"
|
||||
}
|
||||
if extclient.ExtraAllowedIPs == nil {
|
||||
extclient.ExtraAllowedIPs = []string{}
|
||||
}
|
||||
|
||||
parentNetwork, err := GetNetwork(extclient.Network)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user