Fix:修复无法使用Sing-box内核urltest出口的问题

This commit is contained in:
wyx2685
2024-07-15 00:33:54 +09:00
parent 8757b955a6
commit b96545649b
6 changed files with 49 additions and 17 deletions

View File

@@ -69,7 +69,7 @@ func New(c *conf.CoreConfig) (vCore.Core, error) {
if err != nil {
return nil, err
}
hs := NewHookServer(c.SingConfig.EnableConnClear)
hs := NewHookServer(b.Router().GetCtx(), c.SingConfig.EnableConnClear)
b.Router().SetClashServer(hs)
return &Sing{
ctx: b.Router().GetCtx(),