mirror of
https://github.com/2dust/v2rayN.git
synced 2025-10-13 20:09:12 +00:00
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.
This commit is contained in:
parent
69c1f4713e
commit
a5a1c845dd
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ public class CoreAdminHandler
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_linuxSudoPid = -1;
|
_linuxSudoPid = -1;
|
||||||
|
AppHandler.Instance.LinuxSudoPwd = "";
|
||||||
throw new Exception(ResUI.FailedToRunCore, ex);
|
throw new Exception(ResUI.FailedToRunCore, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue