From ccb02ef4ff07065692b801af9c709fb6c1c776c6 Mon Sep 17 00:00:00 2001 From: Self Not Found Date: Mon, 19 Dec 2022 00:32:06 +0800 Subject: [PATCH] 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. --- v2rayN/v2rayN/Handler/MainFormHandler.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/v2rayN/v2rayN/Handler/MainFormHandler.cs b/v2rayN/v2rayN/Handler/MainFormHandler.cs index 240d04ff..598c42b0 100644 --- a/v2rayN/v2rayN/Handler/MainFormHandler.cs +++ b/v2rayN/v2rayN/Handler/MainFormHandler.cs @@ -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; }