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:
Self Not Found 2022-12-19 00:32:06 +08:00 committed by GitHub
parent b48037b757
commit ccb02ef4ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -299,6 +299,13 @@ namespace v2rayN.Handler
update(success, msg);
if (success)
Utils.SaveLog("subscription" + msg);
else
updateHandle.UpdateSubscriptionProcess(config, "", false, (bool success, string msg) =>
{
update(success, msg);
if (success)
Utils.SaveLog("subscription" + msg);
});
});
autoUpdateSubTime = dtNow;
}