Enable system proxy advanced settings, use socks protocol

pull/2295/head
2dust 2022-04-26 20:06:21 +08:00
parent a7741a0b7d
commit 47c843bf09
3 changed files with 3 additions and 3 deletions

View File

@ -1864,7 +1864,7 @@
<value>43</value>
</data>
<data name="chkEnableSystemProxyAdvanced.Text" xml:space="preserve">
<value>Enable system proxy advanced settings (http/https/ftp/socks)</value>
<value>Enable system proxy advanced settings, use socks protocol</value>
</data>
<data name="&gt;&gt;chkEnableSystemProxyAdvanced.Name" xml:space="preserve">
<value>chkEnableSystemProxyAdvanced</value>

View File

@ -374,6 +374,6 @@
<value>参数设置</value>
</data>
<data name="chkEnableSystemProxyAdvanced.Text" xml:space="preserve">
<value>开启系统代理高级设置 (http/https/ftp/socks)</value>
<value>开启系统代理高级设置, 使用socks协议</value>
</data>
</root>

View File

@ -72,7 +72,7 @@ namespace v2rayN.Handler
var strProxy = string.Empty;
if (config.enableSystemProxyAdvanced)
{
strProxy = string.Format("http={0}:{1};https={0}:{1};ftp={0}:{1};socks={0}:{2}", Global.Loopback, port, portSocks);
strProxy = $"socks={Global.Loopback}:{portSocks}";
}
else
{