mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-29 14:26:20 +00:00
Auto-update subscription without proxy
Sometimes the subscription can only be updated without proxy. If the auto-updating process with proxy fails, try to update without proxy.
This commit is contained in:
parent
b48037b757
commit
ccb02ef4ff
1 changed files with 7 additions and 0 deletions
|
@ -299,6 +299,13 @@ namespace v2rayN.Handler
|
||||||
update(success, msg);
|
update(success, msg);
|
||||||
if (success)
|
if (success)
|
||||||
Utils.SaveLog("subscription" + msg);
|
Utils.SaveLog("subscription" + msg);
|
||||||
|
else
|
||||||
|
updateHandle.UpdateSubscriptionProcess(config, "", false, (bool success, string msg) =>
|
||||||
|
{
|
||||||
|
update(success, msg);
|
||||||
|
if (success)
|
||||||
|
Utils.SaveLog("subscription" + msg);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
autoUpdateSubTime = dtNow;
|
autoUpdateSubTime = dtNow;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue