mirror of https://github.com/2dust/v2rayN
Add a prompt for not setting a password when open Tun on macos
parent
a6479fe0d0
commit
77b15cd530
|
@ -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 New Issue