]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add '?' for providing help() output on dnsdist -c 6375/head
authorkrion <krion@freebsd.org>
Tue, 20 Mar 2018 20:15:52 +0000 (21:15 +0100)
committerkrion <krion@freebsd.org>
Tue, 20 Mar 2018 20:15:52 +0000 (21:15 +0100)
pdns/dnsdist-console.cc

index 7d9d0209eedbb9c934338d71942db6f3a9d2d92a..f5a09362572eb27b6cd82cd2e832d5babcf67485 100644 (file)
@@ -136,7 +136,7 @@ void doClient(ComboAddress server, const std::string& command)
     
     if(line=="quit")
       break;
-    if(line=="help")
+    if(line=="help" || line=="?")
       line="help()";
 
     /* no need to send an empty line to the server */
@@ -196,7 +196,7 @@ void doConsole()
     
     if(line=="quit")
       break;
-    if(line=="help")
+    if(line=="help" || line=="?")
       line="help()";
 
     string response;