From 40d3765f93672b3478bb03b058ac649813b7d9bc Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 1 Aug 2023 09:01:14 -0400 Subject: [PATCH] MT#55283 fix CLI description CLI ports are TCP, not UDP. Also remove port reservation as this is also UDP-specific. Change-Id: I51d18896dc8ccc2f7c0cd1f8547a596889d01ad7 --- daemon/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon/main.c b/daemon/main.c index 4e08c9aa7..d124da736 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -448,7 +448,7 @@ static void options(int *argc, char ***argv) { { "listen-udp", 'u', 0, G_OPTION_ARG_STRING, &listenudps, "UDP port to listen on", "[IP46|HOSTNAME:]PORT" }, { "listen-ng", 'n', 0, G_OPTION_ARG_STRING, &listenngs, "UDP port to listen on, NG protocol", "[IP46|HOSTNAME:]PORT" }, { "listen-tcp-ng", 'N', 0, G_OPTION_ARG_STRING, &listenngtcps, "TCP port to listen on, NG protocol", "[IP46|HOSTNAME:]PORT" }, - { "listen-cli", 'c', 0, G_OPTION_ARG_STRING, &listencli, "UDP port to listen on, CLI", "[IP46|HOSTNAME:]PORT" }, + { "listen-cli", 'c', 0, G_OPTION_ARG_STRING, &listencli, "TCP port to listen on, CLI", "[IP46|HOSTNAME:]PORT" }, { "graphite", 'g', 0, G_OPTION_ARG_STRING, &graphitep, "Address of the graphite server", "IP46|HOSTNAME:PORT" }, { "graphite-interval", 'G', 0, G_OPTION_ARG_INT, &rtpe_config.graphite_interval, "Graphite send interval in seconds", "INT" }, { "graphite-prefix",0, 0, G_OPTION_ARG_STRING, &graphite_prefix_s, "Prefix for graphite line", "STRING"}, @@ -1189,7 +1189,6 @@ no_kernel: } if (rtpe_config.cli_listen_ep[0].port) { - interfaces_exclude_port(rtpe_config.cli_listen_ep[0].port); rtpe_cli[0] = cli_new(&rtpe_config.cli_listen_ep[0]); if (!rtpe_cli[0]) die("Failed to open CLI connection port (%s): %s",