TG-Twilight / AWAvenue-Ads-Rule

开源社区中最优秀的广告过滤器列表之一,实现了最优秀的广告拦截、隐私保护和流量节省。支持各种常见的网络层广告拦截工具和代理工具等。 | Use Adblock syntax to fight against various advertising SDKs in Android applications from the network level , prevent them from loading.
https://AWAvenue.top
Other
1.84k stars 62 forks source link

Updated the build file of clash rules. #75

Closed Acrobat-Pro closed 3 months ago

Acrobat-Pro commented 4 months ago

This commit will change the type of Clash rules. The behavior of the original rule should be domain. After merging this change, it needs to be changed to classic, which will affect the use of old users.

The ipaddress library that comes with Python is referenced, and a function is added to the Clash rule build file to determine the rule type.

It has been run locally before the merge.

heinu123 commented 4 months ago

有几点需要改进: 1.你应该修改的是Clash-classical.py 而不是Clash.py

  1. 提交前清理一下.pyc
  2. redme的修改毫无意义