refactor(agent): route 块改由 buildRoute 统一产出,合并 ACL 与 WARP

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-07-23 01:52:39 +08:00
parent 597d6ab68b
commit 4155fc8542
4 changed files with 122 additions and 17 deletions
+1 -1
View File
@@ -323,7 +323,7 @@ func (s *SingBox) RenderConfig() ([]byte, error) {
logf("[warp] load %s failed, WARP routing disabled: %v", s.cfg.WarpConfigPath, err)
warp = nil
}
return renderSingboxConfig(creds, reality, hy2, s.cfg.DeriveKey, warp)
return renderSingboxConfig(creds, reality, hy2, s.cfg.DeriveKey, warp, nil)
}
// writeAndRestart renders, writes the config file and restarts sing-box.