mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-02 21:28:51 +00:00
Update UpdateHandle.cs
This commit is contained in:
parent
e4fa729071
commit
eddd38ff03
1 changed files with 4 additions and 0 deletions
|
@ -200,6 +200,10 @@ namespace v2rayN.Handler
|
||||||
|
|
||||||
_updateFunc(false, $"{hashCode}{ResUI.MsgStartGettingSubscriptions}");
|
_updateFunc(false, $"{hashCode}{ResUI.MsgStartGettingSubscriptions}");
|
||||||
var result = await (new DownloadHandle()).DownloadStringAsync(url, blProxy, userAgent);
|
var result = await (new DownloadHandle()).DownloadStringAsync(url, blProxy, userAgent);
|
||||||
|
if (blProxy && Utils.IsNullOrEmpty(result))
|
||||||
|
{
|
||||||
|
result = await (new DownloadHandle()).DownloadStringAsync(url, false, userAgent);
|
||||||
|
}
|
||||||
|
|
||||||
_updateFunc(false, $"{hashCode}{ResUI.MsgGetSubscriptionSuccessfully}");
|
_updateFunc(false, $"{hashCode}{ResUI.MsgGetSubscriptionSuccessfully}");
|
||||||
if (Utils.IsNullOrEmpty(result))
|
if (Utils.IsNullOrEmpty(result))
|
||||||
|
|
Loading…
Reference in a new issue