From: bert hubert Date: Wed, 18 Mar 2015 07:08:03 +0000 (+0100) Subject: fix up error reporting on console X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~88^2~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64c84ca2e27ca05d3fb2b18568f8cd3e1853ca2d;p=thirdparty%2Fpdns.git fix up error reporting on console --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 42283c2c58..4888bd0a8e 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -307,7 +307,6 @@ try if(len < (int)sizeof(struct dnsheader)) continue; - if(!acl->match(remote)) continue; @@ -316,7 +315,7 @@ try DNSName qname(packet, len, 12, false, &qtype); - + g_rings.queryRing.push_back(qname); if(blockFilter) { @@ -919,6 +918,10 @@ void doConsole() std::cerr << e.what() << std::endl; } } + catch(const std::exception& e) { + // e is the exception that was thrown from inside the lambda + std::cerr << e.what() << std::endl; + } } }