Skip to content

Commit 2a3a387

Browse files
committed
Require maxhost to be at least 45 characters to fit IPv6 addresses.
1 parent 236e830 commit 2a3a387

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/configreader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ServerConfig::ServerLimits::ServerLimits(const std::shared_ptr<ConfigTag>& tag)
5252
, MaxKick(tag->getNum<size_t>("maxkick", 300, 1, MaxLine))
5353
, MaxReal(tag->getNum<size_t>("maxreal", 130, 1, MaxLine))
5454
, MaxAway(tag->getNum<size_t>("maxaway", 200, 1, MaxLine))
55-
, MaxHost(tag->getNum<size_t>("maxhost", 64, 1, MaxLine))
55+
, MaxHost(tag->getNum<size_t>("maxhost", 64, 45, MaxLine))
5656
{
5757
}
5858

0 commit comments

Comments
 (0)