mirror of
https://github.com/2dust/v2rayN.git
synced 2025-04-20 06:02:23 +00:00
Add a prompt for not setting a password when open Tun on macos
This commit is contained in:
parent
a6479fe0d0
commit
77b15cd530
1 changed files with 6 additions and 4 deletions
|
@ -423,10 +423,12 @@ namespace ServiceLib.ViewModels
|
||||||
Locator.Current.GetService<MainWindowViewModel>()?.RebootAsAdmin();
|
Locator.Current.GetService<MainWindowViewModel>()?.RebootAsAdmin();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//else if (Utils.IsLinux())
|
else if (Utils.IsOSX())
|
||||||
//{
|
{
|
||||||
// NoticeHandler.Instance.SendMessageAndEnqueue(ResUI.TbSettingsLinuxSudoPasswordIsEmpty);
|
_config.TunModeItem.EnableTun = false;
|
||||||
//}
|
NoticeHandler.Instance.SendMessageAndEnqueue(ResUI.TbSettingsLinuxSudoPasswordIsEmpty);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
await ConfigHandler.SaveConfig(_config);
|
await ConfigHandler.SaveConfig(_config);
|
||||||
Locator.Current.GetService<MainWindowViewModel>()?.Reload();
|
Locator.Current.GetService<MainWindowViewModel>()?.Reload();
|
||||||
|
|
Loading…
Reference in a new issue