diff options
Diffstat (limited to 'source/lib/util.c')
-rw-r--r-- | source/lib/util.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 ) ) |