OneBox icon indicating copy to clipboard operation
OneBox copied to clipboard

System proxy settings should be cleared automatically on application exit or system shutdown

Open OneOhCloud opened this issue 8 months ago • 2 comments

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

  1. Enable system proxy through OneBox
  2. Shut down the system or terminate the application unexpectedly
  3. 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.

OneOhCloud avatar Mar 15 '26 16:03 OneOhCloud

Maintainer note / TODO

To properly address this issue, the system proxy management implementation needs to be redesigned.

Planned tasks:

  1. Port the functionality of the sysproxy project to Rust https://github.com/clash-verge-rev/sysproxy

  2. Rewrite the existing sysproxy-rs implementation into a new dedicated project: https://github.com/OneOhCloud/sysproxy-rs

  3. 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.

OneOhCloud avatar Mar 16 '26 00:03 OneOhCloud

Close https://github.com/OneOhCloud/onebox-sysproxy-rs

OneOhCloud avatar Mar 17 '26 00:03 OneOhCloud