]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Allow ::1/128 to access the console by default too
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 27 Mar 2018 09:59:10 +0000 (11:59 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 28 Mar 2018 08:22:06 +0000 (10:22 +0200)
pdns/dnsdist.cc

index 8c62d962bcadeb9946063b2ddf4f53a53b9aa108..787e6ee4d60d273d2f7db1f56853d7df11838d72 100644 (file)
@@ -2194,7 +2194,9 @@ try
   }
 
   auto consoleACL = g_consoleACL.getCopy();
-  consoleACL.addMask("127.0.0.1/8");
+  for (const auto& mask : { "127.0.0.1/8", "::1/128" }) {
+    consoleACL.addMask(mask);
+  }
   g_consoleACL.setState(consoleACL);
 
   if (g_cmdLine.checkConfig) {