From 92e05b34ae11ab72ff0581689df5113f01906d32 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 10 Nov 2004 02:13:36 +0000 Subject: r3650: Allow to call spoolss-server as "localhost". Guenther (This used to be commit 14a0292250ee9975618b68701a48c72195286d85) --- source3/lib/util.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source3/lib/util.c') diff --git a/source3/lib/util.c b/source3/lib/util.c index 89cf1bfa02..feb03fe439 100644 --- a/source3/lib/util.c +++ b/source3/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 ) ) -- cgit