From 5fbd6dda269774b4cd18cf257f073279f41bbcbc Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Fri, 27 Oct 2017 02:01:32 +0200 Subject: [PATCH] dnsdist: accept help for help() --- pdns/dnsdist-console.cc | 4 ++++ 1 file changed, 4 insertions(+) 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 { -- 2.40.0