mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-11 07:34:31 +08:00
initalize extraallowed ips field
This commit is contained in:
parent
cf0b4cbd2b
commit
a41fcb5faa
1 changed files with 3 additions and 0 deletions
|
@ -186,6 +186,9 @@ func CreateExtClient(extclient *models.ExtClient) error {
|
||||||
} else if len(extclient.PrivateKey) == 0 && len(extclient.PublicKey) > 0 {
|
} else if len(extclient.PrivateKey) == 0 && len(extclient.PublicKey) > 0 {
|
||||||
extclient.PrivateKey = "[ENTER PRIVATE KEY]"
|
extclient.PrivateKey = "[ENTER PRIVATE KEY]"
|
||||||
}
|
}
|
||||||
|
if extclient.ExtraAllowedIPs == nil {
|
||||||
|
extclient.ExtraAllowedIPs = []string{}
|
||||||
|
}
|
||||||
|
|
||||||
parentNetwork, err := GetNetwork(extclient.Network)
|
parentNetwork, err := GetNetwork(extclient.Network)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue