Revert Bind ProxyDNSCheckBox.Enabled to UseCustomDNSCheckBox.Checked

This commit is contained in:
ChsBuffer
2021-03-03 21:59:22 +08:00
parent e42b98cf03
commit 026eb75eb1
2 changed files with 0 additions and 4 deletions

View File

@@ -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";

View File

@@ -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()