https://www.txthinking.com/talks/
Updated at: 2023-05-24
黑名单模式是仅代理指定的地址,其他都直连。如果你在找中国大陆分流,推荐这篇文章。
你想要以下域名及其子域名走代理,其他地址全部直连
google.com
twitter.com
脚本:
text := import("text")
f := func() {
if in_dnsquery {
l := [
"google.com",
"twitter.com"
]
for v in l {
if text.has_suffix(in_dnsquery.domain, v) {
return
}
}
return {"bypass": true}
}
if in_address {
if in_address.ipaddress {
return {"bypass": true}
}
if in_address.domainaddress {
return
}
}
}
out := f()