fix: close box service in case of exception, use source is private and disallow make in windows

This commit is contained in:
Hiddify
2024-02-08 11:31:39 +01:00
parent cc035c98fa
commit 0a91223909
3 changed files with 20 additions and 8 deletions

View File

@@ -256,8 +256,8 @@ func BuildConfig(opt ConfigOptions, input option.Options) (*option.Options, erro
option.Rule{
Type: C.RuleTypeDefault,
DefaultOptions: option.DefaultRule{
GeoIP: []string{"private"},
Outbound: OutboundBypassTag,
SourceIPIsPrivate: true,
Outbound: OutboundBypassTag,
},
},
)
@@ -367,6 +367,16 @@ func BuildConfig(opt ConfigOptions, input option.Options) (*option.Options, erro
Rules: routeRules,
AutoDetectInterface: true,
OverrideAndroidVPN: true,
// RuleSet: []option.RuleSet{
// {
// Type: C.RuleSetTypeRemote,
// Tag: "geoip-" + opt,
// RemoteOptions: option.RemoteRuleSet{
// URL: "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-ir.srs",
// UpdateInterval: option.Duration(5 * time.day),
// },
// },
// },
GeoIP: &option.GeoIPOptions{
Path: opt.GeoIPPath,
},