diff --git a/Netch/Controllers/DNSController.cs b/Netch/Controllers/DNSController.cs index 53e3f40a97..ccf59a7a1f 100644 --- a/Netch/Controllers/DNSController.cs +++ b/Netch/Controllers/DNSController.cs @@ -27,7 +27,7 @@ public void Start() aiodns_dial((int) NameList.TYPE_ODNS, Encoding.UTF8.GetBytes($"{Global.Settings.AioDNS.OtherDNS}:53")); aiodns_dial((int) NameList.TYPE_METH, Encoding.UTF8.GetBytes(Global.Settings.AioDNS.Protocol)); - if (aiodns_init()) + if (!aiodns_init()) throw new Exception("AioDNS start failed"); }