From: Günther Deschner Date: Wed, 10 Nov 2004 02:13:36 +0000 (+0000) Subject: r3650: Allow to call spoolss-server as "localhost". X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5622 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14a0292250ee9975618b68701a48c72195286d85;p=thirdparty%2Fsamba.git r3650: Allow to call spoolss-server as "localhost". Guenther --- diff --git a/source/lib/util.c b/source/lib/util.c index 89cf1bfa021..feb03fe4395 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -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 ) )