From: Chris Hofstaedtler Date: Fri, 27 Oct 2017 00:01:32 +0000 (+0200) Subject: dnsdist: accept help for help() X-Git-Tag: rec-4.1.0-rc2~10^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5fbd6dda269774b4cd18cf257f073279f41bbcbc;p=pdns dnsdist: accept help for help() --- diff --git a/pdns/dnsdist-console.cc b/pdns/dnsdist-console.cc index 423e90bd1..2abc3ce38 100644 --- a/pdns/dnsdist-console.cc +++ b/pdns/dnsdist-console.cc @@ -136,6 +136,8 @@ void doClient(ComboAddress server, const std::string& command) if(line=="quit") break; + if(line=="help") + line="help()"; /* no need to send an empty line to the server */ if(line.empty()) @@ -194,6 +196,8 @@ void doConsole() if(line=="quit") break; + if(line=="help") + line="help()"; string response; try {