feat: fix proxy compatibility and establish TUI foundation

This commit is contained in:
proxyctl coordinator
2026-07-17 20:30:52 +08:00
parent 0f4c122eff
commit daeb788eac
34 changed files with 1521 additions and 176 deletions
+4 -3
View File
@@ -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.