Surge iOS v5.14.6 和 Testflight 版本 v5.100.0 (3514) 都存在这个问题。
iOS 系统:16.6.1
我配置中设置直连策略下 IPv6 优先:
[Proxy]
Prefer-v6 = DIRECT, ip-version=prefer-v6
发现某些情况下,即使同时存在 IPv4 和 IPv6 ,surge 也不会使用 IPv4,连接日志:
11:44:57.039968 [Connection] Handled by VIF
11:44:57.041225 [Rule] Sub-rule
matched: .xhscdn.com(in domain_direct.conf)
11:44:57.041275 [Rulel Rule matched: RULE-SET domain_direct.conf
11:44:57.041687 [DNS] Use cached DNS
result
for sns-avatar-qc.xhscdn.com. A record
count: 11, AAAA record count: 8
11:44:57.042162 [Socket] Connecting with address: 240e: 97d:10:140b::33
11:44:57.042428 [Socket] Connecting with address: 240e:97d:10:140b:: 2f
11:44:57.042724 [Socket] Connecting with address: 240e:97d:10:140b::2e
11:44:57.043071 [Socket] Connecting
with
address: 240e:97:10:140b: :31
11:44:57.043318 [Socket] Connecting with address: 240e:97d:10:140b:: 2d
11:44:57.043540 [Socket] Connecting with address: 240e:97d:10:140b::34
11:44:57.043765 [Socket] Connecting with address: 240e: 97d:10:140b:: 30
11:44:57.043995 [Socket] Connecting with address: 240e:97d:10:140b::32
11:44:58.044018 [Connector] Set up backup connection #2 via Prefer-v6
11:44:58.044780 [Socket] Connecting with address: 240e:97d:10:140b::33
11:44:58.045313 [Socket] Connecting with address: 240e:97d:10:140b:: 2f
11:44:58.045786 [Socket] Connecting with address: 240e:97d:10:140b::2e
11:44:58.046229 [Socket] Connecting with address: 240e:97d:10:140b::31
11:44:58.046684 [Socket] Connecting with address: 240e: 97d:10:140b::2d
11:44:58.047122 [Socket] Connecting with address: 240e:97d:10:140b::34
11:44:58.047535 [Socket] Connecting with address: 240e:97d:10:140b::30
11:44:58.047950 [Socket] Connecting with address: 240e:97d:10:140b::32
11:45:00.045905 Connector] Set up backup connection #3 via Prefer-v6
11:45:00.046450 [Socket] Connecting with address: 240e:97d:10:140b::33
11:45:00.046802 [Socket] Connecting with address: 240e:97d:10:140b:: 2f
11:45:00.047040 [Socket] Connecting with address: 240e:97d:10:140b::2e
11:45:00.047243 [Socket] Connecting with address: 240e:97d:10:140b::31
11:45:00.047439 [Socket] Connecting with address: 240e:97d:10:140b::2d
11:45:00.047705 [Socket] Connecting with address: 240e:97d:10:140b::34
11:45:00.048117 [Socket] Connecting with address: 240e:97d:10:140b::30
11:45:00.048310 [Socket] Connecting with address: 240e:97d:10:140b::32
11:45:03.050976 [Connector] Set up backup connection #4 via Prefer-v6
11:45:03.052060 [Socket] Connecting with address: 240e:97d: 10:140b::33
11:45:03.052674 [Socket] Connecting with address: 240e:97d:10:140b:: 2f
11:45:03.053164 [Socket] Connecting with address: 240e:97d:10:140b::2e
11:45:03.053659 [Socket] Connecting with address: 240e:97d:10:140b::31
11:45:03.054136 [Socket] Connecting with address: 240e:97d:10:140b::2d
11:45:03.054610 [Socket] Connecting with address: 240e:97d:10:140b::34
11:45:03.055263 [Socket] Connecting with address: 240e:97d:10:140b::30
11:45:03.056432 [Socket] Connecting with address: 240e:97d:10:140b::32
11:45:07.042883 [Connection] Disconnect:
Connection timeout