移除废弃的geosite规则
- 从SingBox配置中移除已废弃的geosite规则 - 改用domain_suffix和domain_keyword规则进行分流 - 保留geoip规则用于IP地址分流 - 添加常用中国域名后缀和关键词规则 - 提高配置兼容性和稳定性
This commit is contained in:
parent
6daedca925
commit
fc791e1d61
|
|
@ -458,17 +458,32 @@ def generate_singbox_config(proxies: List[Dict[str, str]]) -> Dict:
|
||||||
"port": 443,
|
"port": 443,
|
||||||
"outbound": "block"
|
"outbound": "block"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"geosite": "cn",
|
|
||||||
"outbound": "direct"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"geoip": "cn",
|
"geoip": "cn",
|
||||||
"outbound": "direct"
|
"outbound": "direct"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"geosite": "geolocation-!cn",
|
"domain_suffix": [
|
||||||
"outbound": "proxy"
|
".cn",
|
||||||
|
".com.cn",
|
||||||
|
".net.cn",
|
||||||
|
".org.cn",
|
||||||
|
".gov.cn",
|
||||||
|
".edu.cn"
|
||||||
|
],
|
||||||
|
"outbound": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"domain_keyword": [
|
||||||
|
"baidu",
|
||||||
|
"taobao",
|
||||||
|
"qq",
|
||||||
|
"weixin",
|
||||||
|
"alipay",
|
||||||
|
"douyin",
|
||||||
|
"bilibili"
|
||||||
|
],
|
||||||
|
"outbound": "direct"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"auto_detect_interface": True
|
"auto_detect_interface": True
|
||||||
|
|
|
||||||
|
|
@ -268,17 +268,32 @@
|
||||||
"port": 443,
|
"port": 443,
|
||||||
"outbound": "block"
|
"outbound": "block"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"geosite": "cn",
|
|
||||||
"outbound": "direct"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"geoip": "cn",
|
"geoip": "cn",
|
||||||
"outbound": "direct"
|
"outbound": "direct"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"geosite": "geolocation-!cn",
|
"domain_suffix": [
|
||||||
"outbound": "proxy"
|
".cn",
|
||||||
|
".com.cn",
|
||||||
|
".net.cn",
|
||||||
|
".org.cn",
|
||||||
|
".gov.cn",
|
||||||
|
".edu.cn"
|
||||||
|
],
|
||||||
|
"outbound": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"domain_keyword": [
|
||||||
|
"baidu",
|
||||||
|
"taobao",
|
||||||
|
"qq",
|
||||||
|
"weixin",
|
||||||
|
"alipay",
|
||||||
|
"douyin",
|
||||||
|
"bilibili"
|
||||||
|
],
|
||||||
|
"outbound": "direct"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"auto_detect_interface": true
|
"auto_detect_interface": true
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Gitea 账号信息
|
||||||
|
ben:8d7d70f324796be650b79415303c31f567bf459b
|
||||||
Loading…
Reference in New Issue