Add HTTP proxy support in forward proxy (#745)
* Add HTTP proxy support in forward proxy Signed-off-by: noisyfox <timemanager.rick@gmail.com> * Typo * Throw exception if forward proxy not supported.
This commit is contained in:
@@ -63,6 +63,11 @@ namespace Shadowsocks.Model
|
||||
config.proxy = new ProxyConfig();
|
||||
if (config.hotkey == null)
|
||||
config.hotkey = new HotkeyConfig();
|
||||
|
||||
if (config.proxy.proxyType < ProxyConfig.PROXY_SOCKS5 || config.proxy.proxyType > ProxyConfig.PROXY_HTTP)
|
||||
{
|
||||
config.proxy.proxyType = ProxyConfig.PROXY_SOCKS5;
|
||||
}
|
||||
return config;
|
||||
}
|
||||
catch (Exception e)
|
||||
|
||||
Reference in New Issue
Block a user