升级sing和xray内核

This commit is contained in:
wyx2685
2024-01-22 13:38:55 +09:00
parent c4d404d979
commit e292b3b0e7
3 changed files with 90 additions and 119 deletions

View File

@@ -76,9 +76,8 @@ func New(c *conf.CoreConfig) (vCore.Core, error) {
}
os.Setenv("SING_DNS_PATH", c.SingConfig.DnsConfigPath)
}
ctx := context.Background()
b, err := box.New(box.Options{
Context: ctx,
Context: context.Background(),
Options: options,
})
if err != nil {