From: Remi Gacogne Date: Fri, 5 Feb 2016 13:49:39 +0000 (+0100) Subject: dnsdist: Log webserver binding errors even in client mode X-Git-Tag: auth-4.0.0-alpha2~79^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c8e7c5841f0375e734769a6444f35e78b920e22;p=thirdparty%2Fpdns.git dnsdist: Log webserver binding errors even in client mode Fixes #3340. --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 1a6e99fd45..9df0b5b670 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -941,6 +941,7 @@ vector> setupLua(bool client, const std::string& confi launch(); } catch(std::exception& e) { + g_outputBuffer="Unable to bind to webserver socket on " + local.toStringWithPort() + ": " + e.what(); errlog("Unable to bind to webserver socket on %s: %s", local.toStringWithPort(), e.what()); } @@ -970,6 +971,7 @@ vector> setupLua(bool client, const std::string& confi } catch(std::exception& e) { + g_outputBuffer="Unable to bind to control socket on " + local.toStringWithPort() + ": " + e.what(); errlog("Unable to bind to control socket on %s: %s", local.toStringWithPort(), e.what()); } });