Bug fix. Remove redundant break statement in IP allocation loop. (#1294)
Docker Build and Push / docker_build (push) Waiting to run
Docker Build and Push / docker_scan (push) Blocked by required conditions

* Remove redundant break statement in IP allocation loop.

* Fix: append IP to allowed_ips list instead of overwriting it
This commit is contained in:
Mikhail Solovev
2026-10-28 17:55:57 +01:00
committed by GitHub
parent e6f6201d25
commit fefde651d2
+1 -2
View File
@@ -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")