From a5a1c845dd6c0827d525bd450bcea839d3e784ee Mon Sep 17 00:00:00 2001 From: maximilionus Date: Wed, 23 Jul 2025 17:52:13 +0300 Subject: [PATCH] Reset sudo password after failed Unix elevation This allows to request the sudo password from user again on next elevation attempt without any need for full application restart. --- v2rayN/ServiceLib/Handler/CoreAdminHandler.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/v2rayN/ServiceLib/Handler/CoreAdminHandler.cs b/v2rayN/ServiceLib/Handler/CoreAdminHandler.cs index 45fedf8e..1c4c441e 100644 --- a/v2rayN/ServiceLib/Handler/CoreAdminHandler.cs +++ b/v2rayN/ServiceLib/Handler/CoreAdminHandler.cs @@ -64,6 +64,7 @@ public class CoreAdminHandler catch (Exception ex) { _linuxSudoPid = -1; + AppHandler.Instance.LinuxSudoPwd = ""; throw new Exception(ResUI.FailedToRunCore, ex); }