From c0ae500d03a30f71c654d5bdf1a835ba6e020d12 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 10 May 2015 04:36:38 +0100 Subject: Fix IPv6 nameservers not being detected by the resolv.conf parser. This fixes #973. Forward port of #974. --- src/coremods/core_dns.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/coremods') diff --git a/src/coremods/core_dns.cpp b/src/coremods/core_dns.cpp index 829351f04..b332368fc 100644 --- a/src/coremods/core_dns.cpp +++ b/src/coremods/core_dns.cpp @@ -717,7 +717,7 @@ class ModuleDNS : public Module if (DNSServer == "nameserver") { resolv >> DNSServer; - if (DNSServer.find_first_not_of("0123456789.") == std::string::npos) + if (DNSServer.find_first_not_of("0123456789.") == std::string::npos || DNSServer.find_first_not_of("0123456789ABCDEFabcdef:") == std::string::npos) { ServerInstance->Logs->Log("CONFIG", LOG_DEFAULT, " set to '%s' as first resolver in /etc/resolv.conf.",DNSServer.c_str()); return; -- cgit v1.2.3