mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
更新添加模式窗口汉化,优化代码
This commit is contained in:
@@ -6,6 +6,8 @@ using Microsoft.Win32;
|
||||
using Netch.Models;
|
||||
using Netch.Utils;
|
||||
using WindowsProxy;
|
||||
using Netch.Servers.Socks5;
|
||||
using Netch.Servers.Trojan;
|
||||
using Netch.Utils.HttpProxyHandler;
|
||||
|
||||
namespace Netch.Controllers
|
||||
@@ -39,7 +41,7 @@ namespace Netch.Controllers
|
||||
|
||||
if (mode.Type == 3)
|
||||
{
|
||||
if ((MainController.Server.Type is "Socks5" or "Trojan") && mode.BypassChina)
|
||||
if ((MainController.Server is Socks5 or Trojan) && mode.BypassChina)
|
||||
{
|
||||
//启动PAC服务器
|
||||
PACServerHandle.InitPACServer("127.0.0.1");
|
||||
|
||||
Reference in New Issue
Block a user