From 70fc37073fe4034dfb728c8e2e183b55f969df8b Mon Sep 17 00:00:00 2001 From: "Naram Qashat cyberbotx@cyberbotx.com" Date: Sun, 5 Oct 2008 02:51:24 +0000 Subject: [PATCH] Allow localhost as a valid hostname in ValidateHostname. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1423 5417fbe8-f217-4b02-8779-1006273d7864 --- src/config.c | 1 + 1 file changed, 1 insertion(+) 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");