]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Flush output in single command client mode 4553/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 10 Oct 2016 11:12:21 +0000 (13:12 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 10 Oct 2016 11:12:21 +0000 (13:12 +0200)
Otherwise redirection to a pipe or a file doesn't work, as
reported on IRC  by tmus (thanks!).

pdns/dnsdist-console.cc

index d6e5eb7a4a1b938a4e97a0f956e624f0a2dda812..1306bb803378101f768b22f2e875bda3e5b4ea60 100644 (file)
@@ -75,6 +75,7 @@ void doClient(ComboAddress server, const std::string& command)
         msg.assign(resp.get(), len);
         msg=sodDecryptSym(msg, g_key, theirs);
         cout<<msg;
+        cout.flush();
       }
     }
     else {