5.9.3 (3122) 版本,macOS 15.2 (24C101)
电脑从休眠模式打开的时候有概率触发,surge 菜单栏里面增强模式是勾选的,但是系统 VPN 设置里 surge 那一项是灰色的,在 surge 菜单栏关闭增强模式重新打开可以恢复
看了日志似乎是休眠之后网络断开,surge network extension 无法启用,休眠结束后也一直是没有启用的状态,直到手动重启增强模式
2024-12-16 12:46:33.743494 <WARNING> [SGMTunnelManager] Failed to start Network Extension
2024-12-16 12:46:36.301481 <WARNING> [SGMSystemSettings] 受系统限制,增强模式无法在不存在可用网络时开启。
2024-12-16 12:47:19.893847 <WARNING> [SGDNSClient] No available upstream DNS server; aborting lookup: stun.cloudflare.com
2024-12-16 12:47:19.894360 <WARNING> [SGSTUNClient-29] DNS error: No available upstream DNS server
2024-12-16 12:47:19.894422 <WARNING> [SGDNSClient] No available upstream DNS server; aborting lookup: stun.miwifi.com
2024-12-16 12:47:19.894476 <WARNING> [SGSTUNClient-29] DNS error: No available upstream DNS server
2024-12-16 12:47:19.894514 <WARNING> [SGDNSClient] No available upstream DNS server; aborting lookup: stun.l.google.com
2024-12-16 12:47:19.894558 <WARNING> [SGSTUNClient-29] DNS error: No available upstream DNS server
2024-12-16 12:47:19.894585 <WARNING> [SGDNSClient] No available upstream DNS server; aborting lookup: stun1.l.google.com
2024-12-16 12:47:19.894619 <WARNING> [SGSTUNClient-29] DNS error: No available upstream DNS server
2024-12-16 12:47:19.894646 <WARNING> [SGDNSClient] No available upstream DNS server; aborting lookup: stun2.l.google.com
2024-12-16 12:47:19.894677 <WARNING> [SGSTUNClient-29] DNS error: No available upstream DNS server
2024-12-16 13:18:44.674821 <WARNING> [SGMTunnelManager] Failed to start Network Extension
2024-12-16 13:18:55.896421 <WARNING> [SGJSSession-146] Script timeout: Mojie-Sub-info
2024-12-16 13:21:05.847789 <NETWORK-ERROR> [SGDNSClient] DNS query timeout: stun2.l.google.com, last error: N/A
检查了一下,我是设置了 唤醒以供网络访问
为 永不
,所以休眠会断网,更改为 始终
应该可以解决,那么 surge 能否在休眠结束后自动检查网络状态然后重新启动 network extension?