diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2016-02-08 21:14:48 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2016-02-08 21:14:48 +0100 |
commit | 45a1174000c23d0bfce5479835a831845ea951f3 (patch) | |
tree | d892b21359b6e4e5b88ecff36316b4eae7b6fef5 /src/plugins/relay/relay-config.c | |
parent | c9a8f23cc78546412bc645d68b344d867ee85bc6 (diff) | |
download | weechat-45a1174000c23d0bfce5479835a831845ea951f3.zip |
relay: fix the max number of clients connected on a port, allow value 0 for "no limit" (closes #669)
Diffstat (limited to 'src/plugins/relay/relay-config.c')
-rw-r--r-- | src/plugins/relay/relay-config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/relay/relay-config.c b/src/plugins/relay/relay-config.c index ec1ec0474..6d12a24d4 100644 --- a/src/plugins/relay/relay-config.c +++ b/src/plugins/relay/relay-config.c @@ -748,8 +748,8 @@ relay_config_init () relay_config_network_max_clients = weechat_config_new_option ( relay_config_file, ptr_section, "max_clients", "integer", - N_("maximum number of clients connecting to a port"), - NULL, 1, 1024, "5", NULL, 0, + N_("maximum number of clients connecting to a port (0 = no limit)"), + NULL, 0, INT_MAX, "5", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); relay_config_network_password = weechat_config_new_option ( relay_config_file, ptr_section, |