summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2004-11-10 02:13:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:11 -0500
commit92e05b34ae11ab72ff0581689df5113f01906d32 (patch)
tree4bd8228d9f41417031028fcbabaaa7c9df6640d1 /source3
parent784832d2e05eb80f1b30825147a5e81a00c97fa2 (diff)
downloadsamba-92e05b34ae11ab72ff0581689df5113f01906d32.tar.gz
samba-92e05b34ae11ab72ff0581689df5113f01906d32.tar.bz2
samba-92e05b34ae11ab72ff0581689df5113f01906d32.zip
r3650: Allow to call spoolss-server as "localhost".
Guenther (This used to be commit 14a0292250ee9975618b68701a48c72195286d85)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util.c7
1 files changed, 6 insertions, 1 deletions
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 ) )