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> |
||
|---|---|---|
| .. | ||
| secubox | ||