Surge 开启 DHCP,并以增强模式接管家里的网络,每次经过大约一周左右,就会出现异常退出,此时 Surge 主程序还在运行,但是如果打开请求查看器就会提示“Surge 主程序没有运行,请先运行 Surge 主程序。”
查看异常前的日志,只有如下内容:
2023-05-29 15:21:32.826127 <WARNING> [SGListener-7] Accept failed with error: Bad file descriptor
2023-05-29 15:30:00.661126 <NOTIFY> [SGMMain] System wake
2023-05-29 15:30:01.665115 <NOTIFY> [SGMSystemSettings] System proxy settings update, state: 1
2023-05-29 15:30:17.516568 <NOTIFY> [SGMAppDelegate] Delay quit to clean proxy settings
2023-05-29 15:30:17.518113 <NOTIFY> [SGMSystemSettings] Unset proxy settings for 6 services
2023-05-29 15:30:17.525271 <NOTIFY> [SGMSystemSettings] System proxy settings update, state: 1
2023-05-29 15:30:17.569160 <NOTIFY> [SGMSystemSettings] System proxy settings update, state: 0
2023-05-29 15:30:17.596399 <NOTIFY> [SGMSystemConfiguration] System DNS update: 192.168.0.1
2023-05-29 15:30:17.596677 <NOTIFY> [SGMSystemSettings] Primary IPv6 service changed
2023-05-29 15:30:17.597612 <NOTIFY> [SGMSystemSettings] System network state: IPv4 en0 (192.168.0.10), IPv6 N/A (No address)
2023-05-29 15:30:17.601241 <NOTIFY> [SGMMain] Effective DNS servers: 202.101.172.35, 202.101.172.47
2023-05-29 15:30:17.601310 <NOTIFY> [SGMMain] Effective encrypted DNS servers: N/A
2023-05-29 15:30:17.625671 <NOTIFY> [SGMAppDelegate] Shutdown Surge core
2023-05-29 15:30:17.631375 <NOTIFY> [SGConnectionManager] 0 idle outgoing connections purged
2023-05-29 15:30:17.645270 <NOTIFY> [SGDHCPServer] Stop to prevent system sleeping