https://www.txthinking.com/talks/
Updated at: 2023-05-24
Proxy only part of addresses, others connect directly.
You want the following domain names and their subdomains to be proxies, and all other addresses are directly connected.
google.com
twitter.com
Script:
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()