mirror of
https://github.com/2dust/v2rayN.git
synced 2025-04-19 13:42:24 +00:00
up test
This commit is contained in:
parent
f199e3bf82
commit
9eab95e870
4 changed files with 13 additions and 3 deletions
|
@ -25,6 +25,8 @@ namespace v2rayN
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string CustomRoutingListUrl = @"https://raw.githubusercontent.com/2dust/v2rayCustomRoutingList/master/";
|
public const string CustomRoutingListUrl = @"https://raw.githubusercontent.com/2dust/v2rayCustomRoutingList/master/";
|
||||||
|
|
||||||
|
public const string GFWLIST_URL = "https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// PromotionUrl
|
/// PromotionUrl
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -121,6 +121,10 @@ namespace v2rayN.Handler
|
||||||
//{
|
//{
|
||||||
// config.pacPort = 8888;
|
// config.pacPort = 8888;
|
||||||
//}
|
//}
|
||||||
|
if (Utils.IsNullOrEmpty(config.urlGFWList))
|
||||||
|
{
|
||||||
|
config.urlGFWList = Global.GFWLIST_URL;
|
||||||
|
}
|
||||||
|
|
||||||
if (config.subItem == null)
|
if (config.subItem == null)
|
||||||
{
|
{
|
||||||
|
@ -579,7 +583,7 @@ namespace v2rayN.Handler
|
||||||
vmessItem.address = vmessItem.address.TrimEx();
|
vmessItem.address = vmessItem.address.TrimEx();
|
||||||
vmessItem.id = vmessItem.id.TrimEx();
|
vmessItem.id = vmessItem.id.TrimEx();
|
||||||
vmessItem.security = vmessItem.security.TrimEx();
|
vmessItem.security = vmessItem.security.TrimEx();
|
||||||
|
|
||||||
if (index >= 0)
|
if (index >= 0)
|
||||||
{
|
{
|
||||||
//修改
|
//修改
|
||||||
|
|
|
@ -140,6 +140,8 @@ namespace v2rayN.Handler
|
||||||
Global.reloadV2ray = true;
|
Global.reloadV2ray = true;
|
||||||
_v2rayHandler.LoadV2ray(_config, _selecteds);
|
_v2rayHandler.LoadV2ray(_config, _selecteds);
|
||||||
|
|
||||||
|
Thread.Sleep(5000);
|
||||||
|
|
||||||
var httpPort = _config.GetLocalPort("speedtest");
|
var httpPort = _config.GetLocalPort("speedtest");
|
||||||
for (int k = 0; k < _selecteds.Count; k++)
|
for (int k = 0; k < _selecteds.Count; k++)
|
||||||
{
|
{
|
||||||
|
@ -191,6 +193,8 @@ namespace v2rayN.Handler
|
||||||
Global.reloadV2ray = true;
|
Global.reloadV2ray = true;
|
||||||
_v2rayHandler.LoadV2ray(_config, _selecteds);
|
_v2rayHandler.LoadV2ray(_config, _selecteds);
|
||||||
|
|
||||||
|
Thread.Sleep(5000);
|
||||||
|
|
||||||
string url = Global.SpeedTestUrl;
|
string url = Global.SpeedTestUrl;
|
||||||
testCounter = 0;
|
testCounter = 0;
|
||||||
if (downloadHandle2 == null)
|
if (downloadHandle2 == null)
|
||||||
|
|
|
@ -29,13 +29,13 @@ namespace v2rayN.HttpProxyHandler
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private const string GFWLIST_URL = "https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt";
|
|
||||||
|
|
||||||
private static readonly IEnumerable<char> IgnoredLineBegins = new[] { '!', '[' };
|
private static readonly IEnumerable<char> IgnoredLineBegins = new[] { '!', '[' };
|
||||||
|
|
||||||
public void UpdatePACFromGFWList(Config config)
|
public void UpdatePACFromGFWList(Config config)
|
||||||
{
|
{
|
||||||
string url = GFWLIST_URL;
|
string url = Global.GFWLIST_URL;
|
||||||
if (!Utils.IsNullOrEmpty(config.urlGFWList))
|
if (!Utils.IsNullOrEmpty(config.urlGFWList))
|
||||||
{
|
{
|
||||||
url = config.urlGFWList;
|
url = config.urlGFWList;
|
||||||
|
|
Loading…
Reference in a new issue