Sync Zonghengjia iPhone and iPad 1.0.4 source candidate
This commit is contained in:
@@ -27,10 +27,8 @@ EXPECTED = [
|
||||
"Shared/ConnectionAttemptPolicy.swift",
|
||||
"Tests/ConnectionAttemptPolicyTests.swift",
|
||||
"Shared/ProxyTransportPolicy.swift",
|
||||
"Shared/ICMPEchoPacket.swift",
|
||||
"App/InternalIPProbe.swift",
|
||||
"Tests/ProxyTransportPolicyTests.swift",
|
||||
"Tests/ICMPEchoPacketTests.swift",
|
||||
"Resources/Assets.xcassets/MountainLandscape.imageset/Contents.json",
|
||||
"Resources/Assets.xcassets/MountainLandscape.imageset/landscape-header-v1.png",
|
||||
]
|
||||
@@ -79,6 +77,15 @@ def main() -> int:
|
||||
require("selectedNodeID" not in app_state, "客户端仍暴露节点选择")
|
||||
require('URLQueryItem(name: "node", value: "auto")' in api, "未启用后台自动选节点")
|
||||
require("verifyProxyEgress" in api and "verifyProxyEgress" in app_state, "缺少出口验证")
|
||||
require('https://vpn.ucvl.cn/' in api and "InternalIPProbe.isReachable(endpoint.address, port: endpoint.port)" in app_state,
|
||||
"平台入口或已授权代理端口不匹配")
|
||||
probe = (ROOT / "App/InternalIPProbe.swift").read_text(encoding="utf-8")
|
||||
require("SOCK_STREAM" in probe and "IPPROTO_TCP" in probe and "SO_ERROR" in probe and "IPPROTO_ICMP" not in probe,
|
||||
"已授权端口未使用 TCP 握手验证")
|
||||
builder = (ROOT / "Shared/TunnelConfigurationBuilder.swift").read_text(encoding="utf-8")
|
||||
require("https://cp.cloudflare.com/generate_204" in builder and '"outboundTag": "proxy"' in builder,
|
||||
"独立 HTTPS 目标缺少强制代理路径")
|
||||
require("NetworkAddress.tunnelUnderlayIPv4(remoteAddress)" in tunnel, "隧道缺少底层路由排除")
|
||||
require("resolveIPv4Address" in tunnel and "excludedRoutes" in tunnel, "缺少节点域名防回环处理")
|
||||
require("dns.alidns.com/resolve" in api and "doh.pub/resolve" in api, "缺少国内 DoH 真实地址解析")
|
||||
require("NetworkAddress.isPublicIPv4" in api and "NetworkAddress.isPublicIPv4" in tunnel, "未拒绝 Fake-IP/内网地址")
|
||||
@@ -114,7 +121,7 @@ def main() -> int:
|
||||
"documentation_version_matches": True,
|
||||
"scope": "Source audit only; no Xcode compile, signing, IPA export, or iPhone tunnel acceptance",
|
||||
"automatic_node_selection": True,
|
||||
"egress_verification": ["api.openai.com", "chatgpt.com"],
|
||||
"egress_verification": ["cp.cloudflare.com", "api.openai.com", "chatgpt.com"],
|
||||
"domain_loop_prevention": True,
|
||||
"gateway_contract": 2,
|
||||
"legacy_backend_compatible": True,
|
||||
|
||||
Reference in New Issue
Block a user