r3650: Allow to call spoolss-server as "localhost".
authorGünther Deschner <gd@samba.org>
Wed, 10 Nov 2004 02:13:36 +0000 (02:13 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:53:11 +0000 (10:53 -0500)
Guenther
(This used to be commit 14a0292250ee9975618b68701a48c72195286d85)

source3/lib/util.c

index 89cf1bfa021b9e36a0720bf49afcfc475310937a..feb03fe439513fed47e28362501db29b20936788 100644 (file)
@@ -1747,7 +1747,12 @@ BOOL is_myname_or_ipaddr(const char *s)
 
        if (is_myname(servername))
                return True;
-               
+
+       /* check for loopback */
+
+       if (strequal(servername, "localhost")) 
+               return True;
+
        /* maybe it's my dns name */
 
        if ( get_mydnsfullname( dnsname ) )