mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Merge pull request #580 from SaberUK/master+restrict-network-name
Fix users being able to set <server:network> to an invalid value.
This commit is contained in:
commit
f6d68c82e7
@ -433,6 +433,9 @@ void ServerConfig::Fill()
|
||||
InvBypassModes = options->getBool("invitebypassmodes", true);
|
||||
NoSnoticeStack = options->getBool("nosnoticestack", false);
|
||||
|
||||
if (Network.find(' ') != std::string::npos)
|
||||
throw CoreException(Network + " is not a valid network name. A network name must not contain spaces.");
|
||||
|
||||
range(SoftLimit, 10, ServerInstance->SE->GetMaxFds(), ServerInstance->SE->GetMaxFds(), "<performance:softlimit>");
|
||||
range(MaxTargets, 1, 31, 20, "<security:maxtargets>");
|
||||
range(NetBufferSize, 1024, 65534, 10240, "<performance:netbuffersize>");
|
||||
|
Loading…
x
Reference in New Issue
Block a user