From 1dbda9cbf9db271785f248d19fb92a05a2592d0a Mon Sep 17 00:00:00 2001 From: Connection Refused Date: Mon, 18 Oct 2021 18:51:04 +0800 Subject: [PATCH] [Netch] Compatible with the latest aiodns --- Netch/Controllers/DNSController.cs | 2 +- Netch/Interops/AioDNS.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Netch/Controllers/DNSController.cs b/Netch/Controllers/DNSController.cs index 010b592f..2e11f682 100644 --- a/Netch/Controllers/DNSController.cs +++ b/Netch/Controllers/DNSController.cs @@ -23,8 +23,8 @@ namespace Netch.Controllers var listenAddress = Global.Settings.LocalAddress; Dial(NameList.TYPE_REST, ""); - Dial(NameList.TYPE_ADDR, $"{listenAddress}:{aioDnsConfig.ListenPort}"); Dial(NameList.TYPE_LIST, Path.GetFullPath(Constants.AioDnsRuleFile)); + Dial(NameList.TYPE_LISN, $"{listenAddress}:{aioDnsConfig.ListenPort}"); Dial(NameList.TYPE_CDNS, $"{aioDnsConfig.ChinaDNS}"); Dial(NameList.TYPE_ODNS, $"{aioDnsConfig.OtherDNS}"); diff --git a/Netch/Interops/AioDNS.cs b/Netch/Interops/AioDNS.cs index d0867937..5ea87d09 100644 --- a/Netch/Interops/AioDNS.cs +++ b/Netch/Interops/AioDNS.cs @@ -37,8 +37,8 @@ namespace Netch.Interops public enum NameList { TYPE_REST, - TYPE_ADDR, TYPE_LIST, + TYPE_LISN, TYPE_CDNS, TYPE_ODNS }