Add system proxy for Linux

This commit is contained in:
2dust
2024-09-28 10:41:30 +08:00
parent fde2a768cf
commit 1411643192
9 changed files with 169 additions and 35 deletions

View File

@@ -11,6 +11,7 @@ using Splat;
using System.ComponentModel;
using System.Reactive.Disposables;
using v2rayN.Desktop.Common;
using v2rayN.Desktop.Handler;
namespace v2rayN.Desktop.Views
{
@@ -124,8 +125,6 @@ namespace v2rayN.Desktop.Views
menuRebootAsAdmin.IsVisible = false;
menuSettingsSetUWP.IsVisible = false;
menuGlobalHotkeySetting.IsVisible = false;
menuOpenTheFileLocation.IsVisible = false;
cmbSystemProxy.IsVisible = false;
if (_config.tunModeItem.enableTun)
{
ViewModel.EnableTun = true;
@@ -255,7 +254,7 @@ namespace v2rayN.Desktop.Views
case EViewAction.UpdateSysProxy:
if (obj is null) return false;
// await SysProxyHandler.UpdateSysProxy(_config, (bool)obj);
await SysProxyHandler.UpdateSysProxy(_config, (bool)obj);
break;
case EViewAction.AddServerViaClipboard: