]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Log webserver binding errors even in client mode 3344/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 5 Feb 2016 13:49:39 +0000 (14:49 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 5 Feb 2016 13:49:39 +0000 (14:49 +0100)
Fixes #3340.

pdns/dnsdist-lua.cc

index 1a6e99fd4544f7cffdff408334734f71e498687f..9df0b5b6702c06218b9a04277037992d44cbf8f6 100644 (file)
@@ -941,6 +941,7 @@ vector<std::function<void(void)>> 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<std::function<void(void)>> 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());
       }
     });