From d95af1b6e0d07343049bec988e57b13173d472b9 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sat, 26 Oct 2019 02:10:03 -0400 Subject: Add flags to request TOPIC and NAMES on client connect --- bounce.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bounce.c') diff --git a/bounce.c b/bounce.c index 1257b93..712b9c3 100644 --- a/bounce.c +++ b/bounce.c @@ -93,12 +93,14 @@ int main(int argc, char *argv[]) { const char *join = NULL; int opt; - while (0 < (opt = getopt(argc, argv, "C:H:K:P:W:a:h:j:n:p:r:u:vw:"))) { + while (0 < (opt = getopt(argc, argv, "C:H:K:NTP:W:a:h:j:n:p:r:u:vw:"))) { switch (opt) { break; case 'C': strlcpy(certPath, optarg, sizeof(certPath)); break; case 'H': localHost = optarg; break; case 'K': strlcpy(privPath, optarg, sizeof(privPath)); + break; case 'N': stateJoinNames = true; break; case 'P': localPort = optarg; + break; case 'T': stateJoinTopic = true; break; case 'W': clientPass = sensitive(optarg); break; case 'a': auth = sensitive(optarg); break; case 'h': host = optarg; -- cgit 1.4.1