|
|
|
@ -261,10 +261,17 @@ namespace v2rayN.ViewModels
|
|
|
|
|
SelectedMoveToGroup = new();
|
|
|
|
|
SelectedRouting = new();
|
|
|
|
|
SelectedServer = new();
|
|
|
|
|
if (_config.tunModeItem.enableTun && Utils.IsAdministrator())
|
|
|
|
|
if (_config.tunModeItem.enableTun)
|
|
|
|
|
{
|
|
|
|
|
if (Utils.IsAdministrator())
|
|
|
|
|
{
|
|
|
|
|
EnableTun = true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
_config.tunModeItem.enableTun = EnableTun = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
_subId = _config.subIndexId;
|
|
|
|
|
|
|
|
|
|
Init();
|
|
|
|
@ -1547,7 +1554,7 @@ namespace v2rayN.ViewModels
|
|
|
|
|
private void ChangeSystemProxyStatus(ESysProxyType type, bool blChange)
|
|
|
|
|
{
|
|
|
|
|
SysProxyHandle.UpdateSysProxy(_config, _config.tunModeItem.enableTun ? true : false);
|
|
|
|
|
_noticeHandler?.SendMessage(ResUI.TipChangeSystemProxy + _config.sysProxyType.ToString(), true);
|
|
|
|
|
_noticeHandler?.SendMessage($"{ResUI.TipChangeSystemProxy} - {_config.sysProxyType.ToString()}", true);
|
|
|
|
|
|
|
|
|
|
Application.Current?.Dispatcher.Invoke((Action)(() =>
|
|
|
|
|
{
|
|
|
|
|