mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-04 21:43:13 +02:00
FIXFORFIX
- Fixed bug where omitting class::connfreq would result in a huge connection attempt flood when autoconnect was enabled. We now set class::connfreq to 60 if it's not specified. Reported by Milliways (#0003018).
This commit is contained in:
@@ -1395,6 +1395,6 @@
|
||||
patch provided by avb (#0003122).
|
||||
- Fixed compile bug on Solaris due to missing INADDR_NONE, fix provided by Schak
|
||||
(#0003125).
|
||||
- Fixed bug where omitting class::connfreq would not give a config error, and would
|
||||
cause a huge connection attempt flood when autoconnect was enabled. Reported by
|
||||
Milliways (#0003018).
|
||||
- Fixed bug where omitting class::connfreq would result in a huge connection attempt
|
||||
flood when autoconnect was enabled. We now set class::connfreq to 60 if it's not
|
||||
specified. Reported by Milliways (#0003018).
|
||||
|
||||
+2
-6
@@ -3512,6 +3512,8 @@ int _conf_class(ConfigFile *conf, ConfigEntry *ce)
|
||||
}
|
||||
ircstrdup(class->name, ce->ce_vardata);
|
||||
|
||||
class->connfreq = 60; /* default */
|
||||
|
||||
for (cep = ce->ce_entries; cep; cep = cep->ce_next)
|
||||
{
|
||||
if (!strcmp(cep->ce_varname, "pingfreq"))
|
||||
@@ -3681,12 +3683,6 @@ int _test_class(ConfigFile *conf, ConfigEntry *ce)
|
||||
"class::pingfreq");
|
||||
errors++;
|
||||
}
|
||||
if (!has_connfreq)
|
||||
{
|
||||
config_error_missing(ce->ce_fileptr->cf_filename, ce->ce_varlinenum,
|
||||
"class::connfreq");
|
||||
errors++;
|
||||
}
|
||||
if (!has_maxclients)
|
||||
{
|
||||
config_error_missing(ce->ce_fileptr->cf_filename, ce->ce_varlinenum,
|
||||
|
||||
Reference in New Issue
Block a user