Add a configuration option for ident_timeout.
This commit is contained in:
parent
4369131cc7
commit
e50ed244f4
|
@ -12,4 +12,3 @@ Todo list for ShadowIRCd 6.2
|
||||||
* pure TS6 compat mode for linking with charybdis/ratbox/etc.
|
* pure TS6 compat mode for linking with charybdis/ratbox/etc.
|
||||||
* TBAN equivalent (like a extban?) (?)
|
* TBAN equivalent (like a extban?) (?)
|
||||||
* ELINE - command to make users kline/dline/xline exempt on-the-fly
|
* ELINE - command to make users kline/dline/xline exempt on-the-fly
|
||||||
* Add a configuration option to set the ident_timeout time.
|
|
||||||
|
|
|
@ -551,6 +551,7 @@ general {
|
||||||
short_motd = no;
|
short_motd = no;
|
||||||
ping_cookie = no;
|
ping_cookie = no;
|
||||||
connect_timeout = 30 seconds;
|
connect_timeout = 30 seconds;
|
||||||
|
ident_timeout = 5;
|
||||||
disable_auth = no;
|
disable_auth = no;
|
||||||
no_oper_flood = yes;
|
no_oper_flood = yes;
|
||||||
true_no_oper_flood = no;
|
true_no_oper_flood = no;
|
||||||
|
|
|
@ -1298,6 +1298,11 @@ general {
|
||||||
*/
|
*/
|
||||||
connect_timeout = 30 seconds;
|
connect_timeout = 30 seconds;
|
||||||
|
|
||||||
|
/* ident timeout: Amount of time (in seconds) that the IRCd will
|
||||||
|
* wait for a user to respond to an ident request.
|
||||||
|
*/
|
||||||
|
ident_timeout = 5;
|
||||||
|
|
||||||
/* disable auth: disables identd checking */
|
/* disable auth: disables identd checking */
|
||||||
disable_auth = no;
|
disable_auth = no;
|
||||||
|
|
||||||
|
|
|
@ -212,6 +212,7 @@ struct config_file_entry
|
||||||
int min_nonwildcard_simple;
|
int min_nonwildcard_simple;
|
||||||
int default_floodcount;
|
int default_floodcount;
|
||||||
int client_flood;
|
int client_flood;
|
||||||
|
int ident_timeout;
|
||||||
int use_egd;
|
int use_egd;
|
||||||
int ping_cookie;
|
int ping_cookie;
|
||||||
int tkline_expire_notices;
|
int tkline_expire_notices;
|
||||||
|
|
|
@ -139,6 +139,12 @@ static struct InfoStruct info_table[] = {
|
||||||
&ConfigFileEntry.connect_timeout,
|
&ConfigFileEntry.connect_timeout,
|
||||||
"Connect timeout for connections to servers"
|
"Connect timeout for connections to servers"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"ident_timeout",
|
||||||
|
OUTPUT_DECIMAL,
|
||||||
|
&ConfigFileEntry.ident_timeout,
|
||||||
|
"Amount of time the server waits for ident responses from clients",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"default_floodcount",
|
"default_floodcount",
|
||||||
OUTPUT_DECIMAL,
|
OUTPUT_DECIMAL,
|
||||||
|
|
|
@ -324,7 +324,10 @@ initialize_global_set_options(void)
|
||||||
splitchecking = 1;
|
splitchecking = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
GlobalSetOptions.ident_timeout = IDENT_TIMEOUT;
|
if(ConfigFileEntry.ident_timeout)
|
||||||
|
GlobalSetOptions.ident_timeout = ConfigFileEntry.ident_timeout;
|
||||||
|
else
|
||||||
|
GlobalSetOptions.ident_timeout = IDENT_TIMEOUT;
|
||||||
|
|
||||||
rb_strlcpy(GlobalSetOptions.operstring,
|
rb_strlcpy(GlobalSetOptions.operstring,
|
||||||
ConfigFileEntry.default_operstring,
|
ConfigFileEntry.default_operstring,
|
||||||
|
|
|
@ -2214,6 +2214,7 @@ static struct ConfEntry conf_general_table[] =
|
||||||
{ "collision_fnc", CF_YESNO, NULL, 0, &ConfigFileEntry.collision_fnc },
|
{ "collision_fnc", CF_YESNO, NULL, 0, &ConfigFileEntry.collision_fnc },
|
||||||
{ "connect_timeout", CF_TIME, NULL, 0, &ConfigFileEntry.connect_timeout },
|
{ "connect_timeout", CF_TIME, NULL, 0, &ConfigFileEntry.connect_timeout },
|
||||||
{ "default_floodcount", CF_INT, NULL, 0, &ConfigFileEntry.default_floodcount },
|
{ "default_floodcount", CF_INT, NULL, 0, &ConfigFileEntry.default_floodcount },
|
||||||
|
{ "ident_timeout", CF_INT, NULL, 0, &ConfigFileEntry.ident_timeout },
|
||||||
{ "disable_auth", CF_YESNO, NULL, 0, &ConfigFileEntry.disable_auth },
|
{ "disable_auth", CF_YESNO, NULL, 0, &ConfigFileEntry.disable_auth },
|
||||||
{ "dots_in_ident", CF_INT, NULL, 0, &ConfigFileEntry.dots_in_ident },
|
{ "dots_in_ident", CF_INT, NULL, 0, &ConfigFileEntry.dots_in_ident },
|
||||||
{ "failed_oper_notice", CF_YESNO, NULL, 0, &ConfigFileEntry.failed_oper_notice },
|
{ "failed_oper_notice", CF_YESNO, NULL, 0, &ConfigFileEntry.failed_oper_notice },
|
||||||
|
|
|
@ -806,6 +806,7 @@ set_default_conf(void)
|
||||||
ConfigFileEntry.min_nonwildcard = 4;
|
ConfigFileEntry.min_nonwildcard = 4;
|
||||||
ConfigFileEntry.min_nonwildcard_simple = 3;
|
ConfigFileEntry.min_nonwildcard_simple = 3;
|
||||||
ConfigFileEntry.default_floodcount = 8;
|
ConfigFileEntry.default_floodcount = 8;
|
||||||
|
ConfigFileEntry.ident_timeout = 5;
|
||||||
ConfigFileEntry.client_flood = CLIENT_FLOOD_DEFAULT;
|
ConfigFileEntry.client_flood = CLIENT_FLOOD_DEFAULT;
|
||||||
ConfigFileEntry.tkline_expire_notices = 0;
|
ConfigFileEntry.tkline_expire_notices = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue