feat: fix proxy compatibility and establish TUI foundation
This commit is contained in:
@@ -11,9 +11,10 @@
|
||||
|
||||
3. **Bare host:port default**. A typed endpoint without a scheme is treated as `http://` for parsing and dialing, matching the curl convention used elsewhere in the app.
|
||||
|
||||
4. **Mapping table**. After detection, the Single proxy URL field is rewritten as follows:
|
||||
- HTTP detected (alone or with SOCKS5): `http://<host:port>`
|
||||
- SOCKS5 only: `socks5h://<host:port>`
|
||||
4. **Mapping table**. After detection, the Profile is updated as follows:
|
||||
- HTTP only: the Single proxy URL becomes `http://<host:port>`.
|
||||
- HTTP and SOCKS5: the form switches to advanced mode; HTTP and HTTPS become `http://<host:port>`, while ALL/SOCKS becomes `socks5://<host:port>`. This preserves both detected capabilities and creates a Profile representable by GNOME as well as HTTP-only Targets.
|
||||
- SOCKS5 only: the Single proxy URL becomes `socks5h://<host:port>`.
|
||||
- Unrecognized protocol: status message only; the field is left untouched.
|
||||
- Dial failure: status message only; the field is left untouched.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user