From 026eb75eb1e2e4ece65d9a67a124b2ff5e6dec82 Mon Sep 17 00:00:00 2001 From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com> Date: Wed, 3 Mar 2021 21:59:22 +0800 Subject: [PATCH] Revert Bind ProxyDNSCheckBox.Enabled to UseCustomDNSCheckBox.Checked --- Netch/Forms/SettingForm.Designer.cs | 1 - Netch/Forms/SettingForm.cs | 3 --- 2 files changed, 4 deletions(-) diff --git a/Netch/Forms/SettingForm.Designer.cs b/Netch/Forms/SettingForm.Designer.cs index 4b20309c..300b3bde 100644 --- a/Netch/Forms/SettingForm.Designer.cs +++ b/Netch/Forms/SettingForm.Designer.cs @@ -595,7 +595,6 @@ 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"; diff --git a/Netch/Forms/SettingForm.cs b/Netch/Forms/SettingForm.cs index c7f33c77..b6ac08c4 100644 --- a/Netch/Forms/SettingForm.cs +++ b/Netch/Forms/SettingForm.cs @@ -206,10 +206,7 @@ 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()