pull/543/head
YFdyh000 2020-03-15 08:22:47 +08:00
parent 973d4ddbb2
commit 2f6236353b
3 changed files with 21 additions and 13 deletions

View File

@ -389,15 +389,19 @@ namespace v2rayN.Forms
txtUserblock.Text = Utils.GetEmbedText(Global.CustomRoutingFileName + Global.blockTag); txtUserblock.Text = Utils.GetEmbedText(Global.CustomRoutingFileName + Global.blockTag);
cmbroutingMode.SelectedIndex = 3; cmbroutingMode.SelectedIndex = 3;
List<string> lstUrl = new List<string>(); List<string> lstUrl = new List<string>
lstUrl.Add(Global.CustomRoutingListUrl + Global.agentTag); {
lstUrl.Add(Global.CustomRoutingListUrl + Global.directTag); Global.CustomRoutingListUrl + Global.agentTag,
lstUrl.Add(Global.CustomRoutingListUrl + Global.blockTag); Global.CustomRoutingListUrl + Global.directTag,
Global.CustomRoutingListUrl + Global.blockTag
};
List<TextBox> lstTxt = new List<TextBox>(); List<TextBox> lstTxt = new List<TextBox>
lstTxt.Add(txtUseragent); {
lstTxt.Add(txtUserdirect); txtUseragent,
lstTxt.Add(txtUserblock); txtUserdirect,
txtUserblock
};
for (int k = 0; k < lstUrl.Count; k++) for (int k = 0; k < lstUrl.Count; k++)
{ {

View File

@ -28,9 +28,11 @@ namespace v2rayN.Handler
public V2rayHandler() public V2rayHandler()
{ {
lstV2ray = new List<string>(); lstV2ray = new List<string>
lstV2ray.Add("wv2ray"); {
lstV2ray.Add("v2ray"); "wv2ray",
"v2ray"
};
} }
/// <summary> /// <summary>

View File

@ -172,8 +172,10 @@ namespace v2rayN.HttpProxyHandler
} }
try try
{ {
List<string> lstProxy = new List<string>(); List<string> lstProxy = new List<string>
lstProxy.Add(string.Format("PROXY {0}:{1};", address, port)); {
string.Format("PROXY {0}:{1};", address, port)
};
string proxy = string.Join("", lstProxy.ToArray()); string proxy = string.Join("", lstProxy.ToArray());
string strPacfile = Utils.GetPath(Global.pacFILE); string strPacfile = Utils.GetPath(Global.pacFILE);