File cups-allowanylocalhost.patch of Package cups

--- cups-1.4.4/scheduler/client.c.orig	2010-04-23 20:56:34.000000000 +0200
+++ cups-1.4.4/scheduler/client.c	2010-07-18 13:32:33.000000000 +0200
@@ -4900,18 +4900,7 @@
     * addresses when accessing CUPS via the loopback interface...
     */
 
-    return (!strcasecmp(host, "localhost") ||
-            !strncasecmp(host, "localhost:", 10) ||
-	    !strcasecmp(host, "localhost.") ||
-            !strncasecmp(host, "localhost.:", 11) ||
-#ifdef __linux
-	    !strcasecmp(host, "localhost.localdomain") ||
-            !strncasecmp(host, "localhost.localdomain:", 22) ||
-#endif /* __linux */
-            !strcmp(host, "127.0.0.1") ||
-	    !strncmp(host, "127.0.0.1:", 10) ||
-	    !strcmp(host, "[::1]") ||
-	    !strncmp(host, "[::1]:", 6));
+    return 1;
   }
 
 #ifdef HAVE_DNSSD
openSUSE Build Service is sponsored by