Refactor: script auto load geosite as a rule provider

This commit is contained in:
yaling888
2022-06-06 04:28:54 +08:00
parent e03f1d0565
commit 05f0c1060b
4 changed files with 49 additions and 16 deletions

View File

@@ -7,6 +7,8 @@ import (
"github.com/Dreamacro/clash/component/geodata/router"
)
const ScriptRuleGeoSiteTarget = "__WhateverTarget__"
type RuleExtra struct {
Network NetWork
SourceIPs []*netip.Prefix