diff --git a/Netch/Forms/SettingForm.cs b/Netch/Forms/SettingForm.cs index ee46df37..808d3128 100644 --- a/Netch/Forms/SettingForm.cs +++ b/Netch/Forms/SettingForm.cs @@ -211,7 +211,7 @@ namespace Netch.Forms #region AioDNS - BindTextBox(AioDNSRulePathTextBox, _ => true, s => Global.Settings.AioDNS.RulePath = s, Global.Settings.AioDNS.RulePath); + BindTextBox(AioDNSRulePathTextBox, _ => true, s => { /*Global.Settings.AioDNS.RulePath = s;*/ }, Global.Settings.AioDNS.RulePath); BindTextBox(ChinaDNSTextBox, _ => true, s => Global.Settings.AioDNS.ChinaDNS = s, Global.Settings.AioDNS.ChinaDNS); diff --git a/Netch/Models/Setting.cs b/Netch/Models/Setting.cs index 95139145..a8e2eb3c 100644 --- a/Netch/Models/Setting.cs +++ b/Netch/Models/Setting.cs @@ -82,7 +82,7 @@ namespace Netch.Models public ushort ListenPort { get; set; } = 53; - public string RulePath { get; set; } = "bin\\aiodns.conf"; + public string RulePath { get; } = "bin\\aiodns.conf"; } public class RedirectorConfig