Surge Mac Version 3.3.3 (939)
查看 Dashboard 时经常能发现一些请求在解析 GEOIP 时花费了很长时间:
community.nssurge.com:443
Rule Evaluating (DNS) - 1898 ms
Establishing Connection - 41 ms
Active - 71 s
Completed
Events
23:09:52.847994 Rule evaluating requires DNS lookup for rule: GEOIP CN
23:09:54.744943 Rule matched: FINAL
23:09:54.745394 Use the last successful address: 47.244.104.197
23:09:54.745538 Connecting with address: 47.244.104.197
23:09:54.786554 Connected to address 47.244.104.197 in 40ms
23:11:01.075598 Remote closed read stream (Half-closed)
23:11:06.221994 Disconnect with reason: Closed by remote (Half-closed connection timeout)
Surge 配置:
[General]
loglevel = notify
bypass-system = true
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 127.0.0.1, localhost, *.local
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24
ipv6 = true
use-default-policy-if-wifi-not-primary = true
hide-crashlytics-request = true
proxy-test-url = http://bing.com/
test-timeout = 5
dns-server = 223.5.5.5, system
[Rule]
DOMAIN-SUFFIX,youtube.com,Proxy
// ...
// 100 条左右的 DOMAIN-SUFFIX 规则
GEOIP,CN,DIRECT
FINAL,Proxy
试过在 GEOIP 这条后面加 no-resolve
, 但这样的话国内的网站也都走 Proxy 了