From a41fcb5faa51d88452ebf307f191d2c433c9fabf Mon Sep 17 00:00:00 2001 From: Abhishek Kondur Date: Mon, 27 Nov 2023 12:24:31 +0400 Subject: [PATCH] initalize extraallowed ips field --- logic/extpeers.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/logic/extpeers.go b/logic/extpeers.go index 07f549bd..aa6b715c 100644 --- a/logic/extpeers.go +++ b/logic/extpeers.go @@ -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 {