From fefde651d2a9a7e25529f4ff5505ce9ae5b7e467 Mon Sep 17 00:00:00 2001 From: Mikhail Solovev Date: Wed, 28 Oct 2026 19:55:57 +0300 Subject: [PATCH] Bug fix. Remove redundant break statement in IP allocation loop. (#1294) * Remove redundant break statement in IP allocation loop. * Fix: append IP to allowed_ips list instead of overwriting it --- src/dashboard.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dashboard.py b/src/dashboard.py index 5320dba0..8e55150f 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -1054,9 +1054,8 @@ def API_addPeers(configName): if ipStatus: for subnet in availableIps.keys(): for ip in availableIps[subnet]: - allowed_ips = [ip] + allowed_ips.append(ip) break - break else: return ResponseObject(False, "No more available IP can assign")