diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-04-12 19:36:12 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-04-12 19:36:12 +0200 |
commit | b947512c9a59e615f8dc9cf15428a18e135808f9 (patch) | |
tree | 4da790d96654894325893459b2fd0a9b4c8b5fc0 /src/plugins/relay/relay-config.c | |
parent | fb6fc22c747ae807256b2de7cd7e5c7d5e82ac75 (diff) | |
download | weechat-b947512c9a59e615f8dc9cf15428a18e135808f9.zip |
relay: add option relay.network.auth_timeout
Diffstat (limited to 'src/plugins/relay/relay-config.c')
-rw-r--r-- | src/plugins/relay/relay-config.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/relay/relay-config.c b/src/plugins/relay/relay-config.c index 6f9e66667..f9c66ce47 100644 --- a/src/plugins/relay/relay-config.c +++ b/src/plugins/relay/relay-config.c @@ -60,6 +60,7 @@ struct t_config_option *relay_config_color_text_selected; struct t_config_option *relay_config_network_allow_empty_password; struct t_config_option *relay_config_network_allowed_ips; +struct t_config_option *relay_config_network_auth_timeout; struct t_config_option *relay_config_network_bind_address; struct t_config_option *relay_config_network_clients_purge_delay; struct t_config_option *relay_config_network_compression_level; @@ -1031,6 +1032,15 @@ relay_config_init () NULL, NULL, NULL, &relay_config_change_network_allowed_ips, NULL, NULL, NULL, NULL, NULL); + relay_config_network_auth_timeout = weechat_config_new_option ( + relay_config_file, ptr_section, + "auth_timeout", "integer", + N_("timeout (in seconds) for client authentication: connection is " + "closed if the client is still not authenticated after this delay " + "and the client status is set to \"authentication failed\" " + "(0 = wait forever)"), + NULL, 0, INT_MAX, "60", NULL, 0, + NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); relay_config_network_bind_address = weechat_config_new_option ( relay_config_file, ptr_section, "bind_address", "string", |