System proxy settings should be cleared automatically on application exit or system shutdown
Problem
If the application exits unexpectedly or the system shuts down while the proxy is enabled, the system proxy configuration may remain active.
This issue affects both Windows and macOS.
Environment
- Platform: Windows / macOS
- Application: OneBox
Steps to Reproduce
- Enable system proxy through OneBox
- Shut down the system or terminate the application unexpectedly
- Restart the system
Actual Behavior
The system proxy may remain enabled and point to a proxy port that is no longer running.
This can cause connectivity issues until the proxy is manually disabled.
Expected Behavior
The client should automatically clear any system proxy settings it applied when:
- the application exits
- the system shuts down
This prevents stale proxy configurations from persisting after restart.
Maintainer note / TODO
To properly address this issue, the system proxy management implementation needs to be redesigned.
Planned tasks:
-
Port the functionality of the
sysproxyproject to Rust https://github.com/clash-verge-rev/sysproxy -
Rewrite the existing
sysproxy-rsimplementation into a new dedicated project: https://github.com/OneOhCloud/sysproxy-rs -
The new project will be named:
onebox-sysproxy-rs
Goals:
- Provide reliable cross-platform system proxy management
- Ensure proxy settings are always restored correctly on application exit
- Improve stability for Windows and macOS environments
This refactor will be part of the long-term infrastructure improvements for OneBox.
Close https://github.com/OneOhCloud/onebox-sysproxy-rs