tlsgate

TLS reverse proxy
git clone git://git.akobets.xyz/tlsgate
Log | Files | Refs | README | LICENSE

commit 1487a0cbc9bc156c308b3d1e7b61c8df8ba1636f
parent 8871ce30294c04b7fe9d4bbe1c88a7f60a91d09e
Author: Artem Kobets <artem@akobets.xyz>
Date:   Thu,  3 Sep 2020 12:28:22 +0300

arg parsing fixes

Diffstat:
Mmain.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main.c b/main.c @@ -30,7 +30,7 @@ usage(void) { errx( "usage: %s [-v] -c cert -k key [-C ca]\n" - " [-h host] -p port [-H host] [-P port] [-U file]\n" + " [-h host] [-p port] [-H host] [-P port] [-U file]\n" " [-n proc-num]", argv0 ); @@ -59,7 +59,7 @@ main(int argc, char **argv) argv0 = argv[0]; - while ((opt = getopt(argc, argv, "c:k:C:h:p:H:P:U:n:v"))) { + while ((opt = getopt(argc, argv, "c:k:C:h:p:H:P:U:n:v")) != -1) { switch (opt) { case 'c': cert_file = optarg;