3 Commits

Author SHA1 Message Date
Aethersailor
2e32922701 fix(bridge): normalize legacy vmess links 2026-05-30 23:00:47 +08:00
Aethersailor
6086b65deb fix: decode URL-encoded subscription links before parsing
- Add preprocessSubscription function to decode entire URL lines
- Fixes v2rayN exported TUIC links with %3A encoded colons
- Universal solution: works for all protocols automatically
- Safe: only decodes %XX patterns, preserves URL structure
- Zero maintenance: no hardcoded protocol names
2025-12-30 22:13:00 +08:00
Aethersailor
949315e120 feat: integrate mihomo native parser via CGO
- Add Go wrapper layer (bridge/) calling mihomo's ConvertsV2Ray()
- Add C++ bridge (mihomo_bridge.h/cpp) for CGO interop
- Update CMakeLists.txt to link Go static library
- Update Dockerfile with multi-stage build (Go + C++)
- Replace explodeConfContent with mihomo::parseSubscription in nodemanip.cpp
- Implement full protocol support (SS/VMess/Trojan/Hysteria/TUIC etc.)
- Add fallback to legacy parser if mihomo library unavailable
This ensures 100% compatibility with mihomo's node config generation
and auto-syncs protocol support with upstream mihomo updates.
2025-12-28 19:46:19 +08:00