mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-17 06:47:48 +00:00
fix(settings): restrict custom proxy to http
Remove the SOCKS5 example from the Network settings custom proxy field until normal file downloads support it end to end. Reject non-HTTP custom proxy URLs in frontend normalization so Settings cannot emit unsupported proxy schemes to aria2-backed downloads. Update proxy dispatch tests to preserve the HTTP path and cover rejected SOCKS5 and HTTPS custom inputs.
This commit is contained in:
@@ -802,13 +802,13 @@ runEngineChecks(false);
|
||||
<div className="mac-settings-row settings-network-row">
|
||||
<div className="settings-row-label">
|
||||
<span>Proxy host</span>
|
||||
<small>Host name, IP address, or URL with scheme.</small>
|
||||
<small>Host name, IP address, or HTTP proxy URL.</small>
|
||||
</div>
|
||||
<input
|
||||
type="text"
|
||||
value={settings.proxyHost}
|
||||
onChange={(e) => settings.setProxyHost(e.target.value)}
|
||||
placeholder="127.0.0.1 or socks5://127.0.0.1"
|
||||
placeholder="127.0.0.1 or http://127.0.0.1"
|
||||
className="app-control settings-network-input font-mono"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user