secubox-openwrt/package/secubox/secubox-app-mitmproxy
CyberMind-FR 0dd6b28d1a fix(mitmproxy): Fix HAProxy backend route sync for new-style UCI configs
The sync-routes command was failing to generate routes for most vhosts due to:
- Subshell bug: pipe in while loop caused variable changes to be lost
- Only supported old-style backends (inline .server field)
- Did not support new-style backends with separate =server sections

Changes:
- Rewrite sync-routes to avoid subshell by using temp file
- Add support for both backend styles (inline and separate server sections)
- Use original_backend field when vhosts are in inspection mode
- Skip luci/fallback/mitmproxy_inspector backends in route generation

Now properly generates 13+ routes for HAProxy backend inspection.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 16:17:29 +01:00
..
files fix(mitmproxy): Fix HAProxy backend route sync for new-style UCI configs 2026-01-31 16:17:29 +01:00
root/srv/mitmproxy/addons feat(mitmproxy): Add HAProxy backend inspection and token auth 2026-01-31 15:49:05 +01:00
Makefile fix(mitmproxy): Fix HAProxy backend route sync for new-style UCI configs 2026-01-31 16:17:29 +01:00