New way of documenting additional params (--param)

All parameters can now be listed with '--params help'.
This commit is contained in:
Martin Pulec
2017-02-16 16:44:13 +01:00
parent 0d9efb2f35
commit 1c02c5e8b0
7 changed files with 72 additions and 61 deletions

View File

@@ -618,6 +618,8 @@ static struct client *add_client(struct client *clients, fd_t fd) {
return new_client;
}
ADD_TO_PARAM_DOC(control_accept_global, "* control-accept-global\n"
" Open control socket to public network.\n");
static void * control_thread(void *args)
{
struct control_state *s = (struct control_state *) args;
@@ -676,13 +678,6 @@ static void * control_thread(void *args)
if (fd == INVALID_SOCKET) {
socket_error("[control socket] accept");
} else {
/**
* @addtogroup cmdline_params
* @{
* * control-accept-global
* Open control socket to public network.
* @}
*/
if (get_commandline_param("control-accept-global") ||
is_addr_loopback(&client_addr)) {
clients = add_client(clients, fd);