近期发现,Surge iOS开启20秒左右会自动停止。就算打开了"始终开启",也会自动停止然后自动启动,还会导致正在连接的wifi被中断,切到5G,然后Surge连接上后,又重新连回wifi,不断往复。
测试了Wifi和5G连接下,关闭"始终开启"后,启动20s左右surge就会自动停止。同样的配置,Surge Mac目前没有发现问题。
运行了Surge App的网络诊断,也没有发现问题。
模块和脚本也都全部关闭了。
iPhone 14 Pro, iOS 17.0.3
Surge 5.7.0(Build 2867, SDK 17.0)
下面是App的日志:
2023-10-15 09:17:47.538474 <NOTIFY> [PacketTunnelProvider] Initialized, build: 2867
2023-10-15 09:17:47.538772 <NOTIFY> [PacketTunnelProvider] System uptime: 571
2023-10-15 09:17:47.538794 <NOTIFY> [SGLogger] Memory usage: 2.34MB (init)
2023-10-15 09:17:47.539430 <NOTIFY> [PacketTunnelProvider] System: Version 17.0.3 (Build 21A360), jailbroken: 0
2023-10-15 09:17:47.556242 <NOTIFY> [SGTUNVirtualDNSContext] Loaded 4553 saved data, min: 198.18.1.2, max: 198.18.18.202
2023-10-15 09:17:47.556792 <NOTIFY> [SGTMain] Internal controller listens on: 49783
2023-10-15 09:17:47.558578 <NOTIFY> [PacketTunnelProvider] Load profile: /private/var/mobile/Containers/Shared/AppGroup/XYZ/iCloud Drive Shadow/XXX.conf
2023-10-15 09:17:47.564546 <NOTIFY> [SGTMain] Updating core settings, sections: All
2023-10-15 09:17:48.240265 <NOTIFY> [SGTMain] Apply rule & proxy settings
2023-10-15 09:17:48.244730 <NOTIFY> [SGTMain] Apply general settings
2023-10-15 09:17:48.244775 <NOTIFY> [SGTMain] Effective DNS servers: 180.76.76.76, 223.5.5.5, 119.29.29.29
2023-10-15 09:17:48.244785 <NOTIFY> [SGTMain] Effective encrypted DNS servers: N/A
2023-10-15 09:17:48.244843 <NOTIFY> [SGTMain] Raise the UDP process queue priority to high
2023-10-15 09:17:48.244872 <NOTIFY> [SGTMain] Apply replica settings
2023-10-15 09:17:48.247416 <NOTIFY> [SGConnectionManager] HTTP proxy listen on interface: 127.0.0.1, port: 6152
2023-10-15 09:17:48.253194 <NOTIFY> [SGConnectionManager] SOCKS5 proxy listen on interface: 127.0.0.1, port: 6153
2023-10-15 09:17:48.254865 <NOTIFY> [STNetworkInterfaceManager] Available interfaces: en0 (IPv4: 192.168.50.18 IPv6: 2408:XYZ MTU: 1500) pdp_ip0 (IPv4: 10.XYZ IPv6: 2408:XYZ MTU: 1450) pdp_ip1 (IPv6: 2408:XYZ MTU: 1450) Primary interface: en0(192.168.50.18), IPv4: 1, IPv6: 1
2023-10-15 09:17:48.254877 <NOTIFY> [STNetworkInterfaceManager] Cellular data interface: pdp_ip0
2023-10-15 09:17:48.255140 <NOTIFY> [PacketTunnelProvider] System DNS Updated (reload, V): 2408:XYZ, 192.168.50.1
2023-10-15 09:17:48.258623 <NOTIFY> [PacketTunnelProvider] SSID: asus-han5
2023-10-15 09:17:48.258637 <NOTIFY> [SGTMain] IPv6 enabled
2023-10-15 09:17:48.264117 <NOTIFY> [SGTMain] Cellular network: (null) (NR)
2023-10-15 09:17:48.264150 <NOTIFY> [SGTMain] Effective DNS servers: 180.76.76.76, 192.168.50.1, 223.5.5.5, 119.29.29.29, 2408:
2023-10-15 09:17:48.264161 <NOTIFY> [SGTMain] Effective encrypted DNS servers: N/A
2023-10-15 09:17:48.264238 <NOTIFY> [PacketTunnelProvider] Effective working mode: 1
2023-10-15 09:17:48.264259 <NOTIFY> [PacketTunnelProvider] Setup IPv6 for Surge VIF
2023-10-15 09:17:48.334616 <NOTIFY> [SGConnectionManager] HTTP proxy listen on interface: 192.168.50.18, port: 6152
2023-10-15 09:17:48.334815 <NOTIFY> [SGConnectionManager] SOCKS5 proxy listen on interface: 192.168.50.18, port: 6153
2023-10-15 09:17:48.335101 <NOTIFY> [PacketTunnelProvider] Service starting completed
2023-10-15 09:17:48.335154 <NOTIFY> [SGLogger] Memory usage: 22.42MB (service starting completed)
2023-10-15 09:17:48.747752 <WARNING> [SGOutgoingSelector] ONE-TIME WARNING: Policy group ♻️ 最优节点 contains too many sub-policies (128). The availablity test will waste a lot of time.
2023-10-15 09:17:49.339359 <NOTIFY> [PacketTunnelProvider] Effective utun MTU: 4000
2023-10-15 09:17:58.445553 <NOTIFY> [SGExternalResource] Download external resource: https://raw.githubusercontent.com/deezertidal/private/main/rule/AntiAD.list
2023-10-15 09:17:58.445953 <NOTIFY> [PacketTunnelProvider] Enable iCloud Drive profile auto-updating.
2023-10-15 09:18:00.783575 <WARNING> [PacketTunnelProvider] Received memory warning, level: 4
2023-10-15 09:18:00.783722 <NOTIFY> [SGLogger] Memory usage: 40.00MB (received memory warning)
2023-10-15 09:18:00.784828 <WARNING> [BaseObject] Instance count:
SGDNSClient-1
SGJournalSessionRecord-115
SGConnectorPool-1
SGWGDNSUDPSocket-2
SGHTTPOutgoingConnectionH2-1
SGTunnelConnection-2
SGSocket-9
SGJSVM-1
SGNetworkQuality-1
SGController-1
SGFileDescriptor-17
SGListener-8
_SGHTTPClientSiteSession-2
SGEEventCenter-1
SGIPLayerDNSForwarder-1
SGTLSWrapper-6
KDLRUCache-4
SGDNSClientResult-7
SGJournalInterfaceSessionRecord-2
SGControllerSocketContext-1
SGDirectConnector-1
SGJournalRequestRecord-3
SGConnectionLimiterContainer-1
SGOutgoingSelector-1
SGHTTPRequestHeader-1
SGWGManager-1
SGHTTPIncomingConnectionH1-1
SGUDPForwarder-1
SGJournalRecordContainer-1
STNetworkInterfaceManager-1
SGHTTPEngine-1
SGHTTPClient-1
SGWGDNSClient-2
SGExternalResource-1
SGTCPConnectionManager-1
SGConnectionLimiter-1
SGTrojanConnector-4
SGHTTPRequestCONNECTHeader-2
SGHTTPController-1
SGTUNVirtualDNSContext-1
SGWGSession-2
SGConnectionManager-1
SGHTTPOutgoingConnectionH1-2
SGConnectorMasterConnectionManager-1
SGControlInterface-1
SGPonteManager-1
SGTMain-1
SGProxyTestManager-1
SGICMPForwarder-1
2023-10-15 09:18:00.785031 <NOTIFY> [SGConnectionManager] 1 idle outgoing connections purged
2023-10-15 09:18:00.785088 <NOTIFY> [PacketTunnelProvider] 1 SGSocket WritingHoldRef has been purged
2023-10-15 09:18:00.785414 <WARNING> [SGTMain] Active connections:
SGHTTPIncomingConnectionH1-3
#1 SGTunnelConnection 127.0.0.1 -> www.youtube.com via 🇭🇰 Hong Kong 01 (Last activity: 11 seconds ago)
#2 SGTunnelConnection-2 127.0.0.1 -> i.ytimg.com via 🇯🇵 Japan 01 (Last activity: 11 seconds ago)