mirror of
https://github.com/dikeckaan/mu300-linux.git
synced 2026-12-06 08:03:36 +00:00
The MIHOMO_CONTROLLER setting is gone: mihomo gets no external-controller (nor -tls, -unix, -pipe, -cors, external-ui*, external-doh-server, tls, secret) from a setting, an older store or a legacy vpn.conf, so the TUN is the only thing that listens and no unauthenticated API can reconfigure it. The reader now refuses, as the JSON drivers refuse a misspelled shape key, a top-level key that is a kept name or one of ours in another spelling (case, _ for -), a key of the driver's reserved names (mu300-anchor-N), and takes the size cap before anything reads the file; merge keys, aliases and anchors at column 0 and merge tags stay refused, and what an alias brings into a kept block comes from an anchored block that went through the same removals. The written-file guard lost its controller argument and refuses any external-*, secret, tls, port or listener in any spelling. Tests mirror the sing-box ones (nothing listens, keys spelled differently, the size cap first, an alias cannot bring a key in); spec, README and tests/README follow. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn