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("The value of <") + tag + ":" + val + "> is not a valid hostname");