From e42b98cf03e4ec562d194554700bde46cf855376 Mon Sep 17 00:00:00 2001 From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com> Date: Wed, 3 Mar 2021 20:11:49 +0800 Subject: [PATCH] Change ProxyDNSCheckBox.Text to "Update DNS in Proxy Rule IPs Mode" ,bind Enabled to UseCustomDNSCheckBox.Checked --- Netch/Forms/SettingForm.Designer.cs | 3 ++- Netch/Forms/SettingForm.cs | 3 +++ Netch/Resources/zh-CN | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Netch/Forms/SettingForm.Designer.cs b/Netch/Forms/SettingForm.Designer.cs index 99ced02a..4b20309c 100644 --- a/Netch/Forms/SettingForm.Designer.cs +++ b/Netch/Forms/SettingForm.Designer.cs @@ -595,12 +595,13 @@ namespace Netch.Forms // // ProxyDNSCheckBox // + this.ProxyDNSCheckBox.DataBindings.Add(new System.Windows.Forms.Binding("Enabled", this.UseCustomDNSCheckBox, "Checked", true));; this.ProxyDNSCheckBox.AutoSize = true; this.ProxyDNSCheckBox.Location = new System.Drawing.Point(261, 139); this.ProxyDNSCheckBox.Name = "ProxyDNSCheckBox"; this.ProxyDNSCheckBox.Size = new System.Drawing.Size(138, 16); this.ProxyDNSCheckBox.TabIndex = 9; - this.ProxyDNSCheckBox.Text = "Proxy DNS in Mode 2"; + this.ProxyDNSCheckBox.Text = "Proxy DNS in Proxy Rule IPs Mode"; this.ProxyDNSCheckBox.UseVisualStyleBackColor = true; // // UseFakeDNSCheckBox diff --git a/Netch/Forms/SettingForm.cs b/Netch/Forms/SettingForm.cs index b6ac08c4..c7f33c77 100644 --- a/Netch/Forms/SettingForm.cs +++ b/Netch/Forms/SettingForm.cs @@ -206,7 +206,10 @@ namespace Netch.Forms if (UseCustomDNSCheckBox.Checked) TUNTAPDNSTextBox.Text = Global.Settings.TUNTAP.DNS.Any() ? DnsUtils.Join(Global.Settings.TUNTAP.DNS) : "1.1.1.1"; else + { TUNTAPDNSTextBox.Text = "AioDNS"; + ProxyDNSCheckBox.Checked = false; + } } private void InitSTUN() diff --git a/Netch/Resources/zh-CN b/Netch/Resources/zh-CN index 590acddb..30a9b117 100644 --- a/Netch/Resources/zh-CN +++ b/Netch/Resources/zh-CN @@ -154,7 +154,7 @@ "Netmask": "子网掩码", "Gateway": "网关", "Use Custom DNS": "使用自定义 DNS", - "Proxy DNS in Mode 2": "在模式 2 下代理 DNS", + "Proxy DNS in Proxy Rule IPs Mode": "在 代理规则IP 模式下代理 DNS", "Use Fake DNS": "使用 Fake DNS", "Exit when closed": "关闭时退出", "Stop when exited": "退出时停止",