From 6b96f3c9948a6600efb29de425a9f5727f35489c Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 28 Feb 2018 15:21:38 -0800 Subject: nng listen option tries to dial instead. --- tools/nngcat/nngcat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/nngcat/nngcat.c b/tools/nngcat/nngcat.c index 8c8ce34f..4e61d41a 100644 --- a/tools/nngcat/nngcat.c +++ b/tools/nngcat/nngcat.c @@ -105,7 +105,7 @@ static nng_optspec opts[] = { { .o_name = "pair1", .o_val = OPT_PAIR1 }, { .o_name = "bus0", .o_val = OPT_BUS0 }, { .o_name = "dial", .o_val = OPT_DIAL, .o_arg = true }, - { .o_name = "listen", .o_val = OPT_DIAL, .o_arg = true }, + { .o_name = "listen", .o_val = OPT_LISTEN, .o_arg = true }, { .o_name = "data", .o_short = 'D', .o_val = OPT_DATA, .o_arg = true }, { .o_name = "file", .o_short = 'F', .o_val = OPT_FILE, .o_arg = true }, { .o_name = "subscribe", .o_val = OPT_SUBSCRIBE, .o_arg = true }, -- cgit v1.2.3-70-g09d2