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

@@ -249,12 +249,6 @@ Script enables users to programmatically select a policy for the packets with mo
```yaml
mode: script
rules:
# the rule GEOSITE just as a rule provider in mode script
- GEOSITE,category-ads-all,Whatever
- GEOSITE,youtube,Whatever
- GEOSITE,geolocation-cn,Whatever
script:
code: |
def main(ctx, metadata):