whalechoi:AsteriskBOX 的 VPN Service 独立进程重构进入 main
在 AsteriskBOX PR #41 下,whalechoi 说明,VPN Service 独立 :vpn 进程的方向已在 main 落地,并保留原贡献者署名。重构继续通过 libbox 的 command.sock 控制核心,不新增 TCP 控制监听;启停通过 ResultReceiver 返回,隧道存活改由加锁的 vpn-session 文件判断。开机及 always-on 恢复把启动交回 App 进程,:vpn 不接触 App 日志文件。该 PR 因已有替代实现而关闭。
作者原文@whalechoiThanks for the idea and the groundwork. This direction has landed on main as 6ed0abe7 (refactor: run the VPN Service in its own process), credited to you via Co-authored-by.
The refactor keeps the goal of hosting the VPN Service in a separate
:vpnprocess, with a smaller change surface:
- the core is still controlled through libbox's
command.sock, so no TCP control listener is added;- start/stop answer through a
ResultReceiver, and tunnel liveness comes from a lockedvpn-sessionfile instead of a shared preference;- boot and always-on resumes hand the start back to the app process, and
:vpnnever touches the app's log files.Closing this PR as superseded.