try to speed up
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using v2rayN.Mode;
|
using v2rayN.Mode;
|
||||||
|
|
||||||
namespace v2rayN.HttpProxyHandler
|
namespace v2rayN.HttpProxyHandler
|
||||||
@@ -148,7 +149,9 @@ namespace v2rayN.HttpProxyHandler
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="config"></param>
|
/// <param name="config"></param>
|
||||||
/// <param name="forced"></param>
|
/// <param name="forced"></param>
|
||||||
public static void RestartHttpAgent(Config config, bool forced)
|
public static Task RestartHttpAgent(Config config, bool forced)
|
||||||
|
{
|
||||||
|
return Task.Run(() =>
|
||||||
{
|
{
|
||||||
bool isRestart = false;
|
bool isRestart = false;
|
||||||
if (config.listenerType == ListenerType.noHttpProxy)
|
if (config.listenerType == ListenerType.noHttpProxy)
|
||||||
@@ -175,6 +178,7 @@ namespace v2rayN.HttpProxyHandler
|
|||||||
StartHttpAgent(config);
|
StartHttpAgent(config);
|
||||||
}
|
}
|
||||||
Update(config, false);
|
Update(config, false);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetPacUrl()
|
public static string GetPacUrl()
|
||||||
|
|||||||
Reference in New Issue
Block a user