Browse Source

bug fix

pull/4655/head
2dust 10 months ago
parent
commit
005f26ba7c
  1. 2
      v2rayN/v2rayN/Resx/ResUI.Designer.cs
  2. 4
      v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs

2
v2rayN/v2rayN/Resx/ResUI.Designer.cs generated

@ -619,7 +619,7 @@ namespace v2rayN.Resx {
}
/// <summary>
/// 查找类似 Add [Trojan] server 的本地化字符串。
/// 查找类似 Add [Hysteria2] server 的本地化字符串。
/// </summary>
public static string menuAddHysteria2Server {
get {

4
v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs

@ -1620,11 +1620,11 @@ namespace v2rayN.ViewModels
if (_config.tunModeItem.enableTun != EnableTun)
{
_config.tunModeItem.enableTun = EnableTun;
// 非管理员运行时tun模式开启逻辑修改
// When running as a non-administrator, reboot to administrator mode
if (EnableTun && !Utils.IsAdministrator())
{
_config.tunModeItem.enableTun = false;
RebootAsAdmin();
_config.tunModeItem.enableTun = EnableTun = false;
return;
}
Reload();

Loading…
Cancel
Save