warp-vpn

point to point VPN implementation
git clone git://git.2f30.org/warp-vpn
Log | Files | Refs | README

commit 3b1d275c0075b0c9e2c72ef98db9bff196051b7e
parent 84c18d8c69f62b0031e4f0fe330606d73cf708b2
Author: sin <sin@2f30.org>
Date:   Thu, 14 Apr 2016 09:47:48 +0100

move it up to case so one can do stun -c ?

Diffstat:
Mstun.c | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/stun.c b/stun.c @@ -110,6 +110,10 @@ main(int argc, char *argv[]) break; case 'c': cipher = EARGF(usage()); + if (strcmp(cipher, "?") == 0) { + listciphers(); + return 0; + } break; default: usage(); @@ -123,11 +127,6 @@ main(int argc, char *argv[]) if (setrlimit(RLIMIT_CORE, &rlim) < 0) logerr("failed to disable core dumps"); - if (strcmp(cipher, "?") == 0) { - listciphers(); - return 0; - } - signal(SIGPIPE, SIG_IGN); if (!debug) daemon(0, 0);