diff options
author | June McEnroe <june@causal.agency> | 2019-10-26 02:10:03 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-10-26 02:10:03 -0400 |
commit | d95af1b6e0d07343049bec988e57b13173d472b9 (patch) | |
tree | 142d3660fce36d370c54e74cd158578a1921c116 /bounce.c | |
parent | Oops (diff) | |
download | pounce-d95af1b6e0d07343049bec988e57b13173d472b9.tar.gz pounce-d95af1b6e0d07343049bec988e57b13173d472b9.zip |
Add flags to request TOPIC and NAMES on client connect
Diffstat (limited to '')
-rw-r--r-- | bounce.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |