]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
don't do TCP access checking over unix domain sockets
authorBert Hubert <bert.hubert@netherlabs.nl>
Thu, 7 Aug 2008 19:46:38 +0000 (19:46 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Thu, 7 Aug 2008 19:46:38 +0000 (19:46 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1255 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/dynlistener.cc

index 8be07821fefc64bcc7c8c60260791cf9f8413ad1..034546f1a34f0c56068dc3af29658078c1e87641 100644 (file)
@@ -186,7 +186,7 @@ string DynListener::getLine()
        continue;
       }
 
-      if(!d_tcprange.match(&remote)) {
+      if(!d_tcp && d_tcprange.match(&remote)) {
        writen2(d_client, "Access denied to "+remote.toString()+"\n");
        close(d_client);
        continue;