]> granicus.if.org Git - pdns/commitdiff
dnsdist: accept help for help()
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Fri, 27 Oct 2017 00:01:32 +0000 (02:01 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Fri, 27 Oct 2017 00:02:31 +0000 (02:02 +0200)
pdns/dnsdist-console.cc

index 423e90bd11e9977e758df393a14d44e3f422e921..2abc3ce384a4bfba2b54a7589ddb80358c9f5988 100644 (file)
@@ -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 {