secubox-openwrt/package
CyberMind-FR 6b7119d790 fix(haproxyctl): Prevent config corruption from nested config_foreach
Pre-collect server sections to temp file before iterating backends to avoid
UCI state corruption. Nested config_foreach calls were causing server lines
to appear in wrong sections (userlist, global).

Changes:
- Add _precollect_server() to gather all server data before backend iteration
- Store server data as pipe-delimited records in temp file
- Replace _check_server_sections nested iteration with grep lookup
- Replace _add_server_to_backend nested iteration with grep + while read
- Mark old _add_server_to_backend as DEPRECATED

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-27 08:45:43 +01:00
..
secubox fix(haproxyctl): Prevent config corruption from nested config_foreach 2026-03-27 08:45:43 +01:00