summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ) )