mirror of
https://github.com/netchx/netch.git
synced 2026-04-15 21:03:23 +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");
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace Netch.Forms
|
||||
|
||||
//Socks5
|
||||
Boolean s5BwFlag = true;
|
||||
if (MainController.Server.Type is "Socks5")
|
||||
if (MainController.Server is Socks5)
|
||||
{
|
||||
Socks5 SocksServer = (Socks5) MainController.Server;
|
||||
|
||||
|
||||
@@ -129,6 +129,7 @@
|
||||
"Add / Modify": "保存/修改",
|
||||
"Select a folder": "选择一个目录",
|
||||
"Please enter an process name (xxx.exe)": "请输入一个进程名(xxx.exe)",
|
||||
"Rule does not conform to C++ regular expression syntax": "规则不符合C ++正则表达式语法",
|
||||
"Scan completed": "扫描完成",
|
||||
"Mode added successfully": "模式添加成功",
|
||||
"Mode updated successfully": "模式修改成功",
|
||||
|
||||
Reference in New Issue
Block a user