diff options
| author | Loyalsoldier <[email protected]> | 2024-12-10 16:57:39 +0800 |
|---|---|---|
| committer | Loyalsoldier <[email protected]> | 2024-12-10 16:57:39 +0800 |
| commit | 9a1e35abb0926b94b0237d2d2041f48a6bdc1086 (patch) | |
| tree | a508ed4305fcd08c2e99b5ad7d0a973d32827b77 /plugin | |
| parent | be06655e85949b5e44bac9f3b54e55809eb88cc9 (diff) | |
Chore: update dependencies
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/singbox/srs_in.go | 2 | ||||
| -rw-r--r-- | plugin/singbox/srs_out.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugin/singbox/srs_in.go b/plugin/singbox/srs_in.go index 13dd51af..68ccd461 100644 --- a/plugin/singbox/srs_in.go +++ b/plugin/singbox/srs_in.go @@ -238,7 +238,7 @@ func (s *SRSIn) generateEntries(name string, reader io.Reader, entries map[strin return err } - for _, rule := range plainRuleSet.Rules { + for _, rule := range plainRuleSet.Options.Rules { for _, cidrStr := range rule.DefaultOptions.IPCIDR { if err := entry.AddPrefix(cidrStr); err != nil { return err diff --git a/plugin/singbox/srs_out.go b/plugin/singbox/srs_out.go index e613b993..e2fb767e 100644 --- a/plugin/singbox/srs_out.go +++ b/plugin/singbox/srs_out.go @@ -194,7 +194,7 @@ func (s *SRSOut) writeFile(filename string, ruleset *option.PlainRuleSet) error } defer f.Close() - err = srs.Write(f, *ruleset, false) + err = srs.Write(f, *ruleset, constant.RuleSetVersion1) if err != nil { return err } |
