diff options
author | Günther Deschner <gd@samba.org> | 2004-11-10 02:13:36 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:53:11 -0500 |
commit | 92e05b34ae11ab72ff0581689df5113f01906d32 (patch) | |
tree | 4bd8228d9f41417031028fcbabaaa7c9df6640d1 | |
parent | 784832d2e05eb80f1b30825147a5e81a00c97fa2 (diff) | |
download | samba-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)
-rw-r--r-- | source3/lib/util.c | 7 |
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 ) ) |