summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index 8341314c0..536a0d2f3 100644
--- a/src/config.c
+++ b/src/config.c
@@ -442,6 +442,7 @@ void ServerConfig::ValidateIP(const char *p, const std::string &tag, const std::
void ServerConfig::ValidateHostname(const char *p, const std::string &tag, const std::string &val)
{
+ if (!strcasecmp(p, "localhost")) return;
int num_dots = 0;
if (*p) {
if (*p == '.') throw ConfigException(static_cast<std::string>("The value of <") + tag + ":" + val + "> is not a valid hostname");