initalize extraallowed ips field

This commit is contained in:
Abhishek Kondur 2023-11-27 12:24:31 +04:00
parent cf0b4cbd2b
commit a41fcb5faa

View file

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