Harden connection-mode persistence and remove ambiguous legacy state restoration.
Only the explicit current proxy value restores SOCKS5 mode. Unknown or obsolete values fall back to TUN.
Changes
Restore SOCKS5 only from the current proxy value
Fail closed to TUN for unknown and legacy persisted values
Return the SharedPreferences write result from setMode
Do not update UI state when persistence fails
Show a save failure to the user
No changes are made to the actual TUN or SOCKS5 implementations.
## Summary
Harden connection-mode persistence and remove ambiguous legacy state restoration.
Only the explicit current `proxy` value restores SOCKS5 mode. Unknown or obsolete values fall back to TUN.
## Changes
- Restore SOCKS5 only from the current `proxy` value
- Fail closed to TUN for unknown and legacy persisted values
- Return the SharedPreferences write result from setMode
- Do not update UI state when persistence fails
- Show a save failure to the user
No changes are made to the actual TUN or SOCKS5 implementations.
The changes on this branch are already on the target branch. This will be an empty commit.
You are not authorized to merge this pull request.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Harden connection-mode persistence and remove ambiguous legacy state restoration.
Only the explicit current
proxyvalue restores SOCKS5 mode. Unknown or obsolete values fall back to TUN.Changes
proxyvalueNo changes are made to the actual TUN or SOCKS5 implementations.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.