warp-vpn

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

commit 84c18d8c69f62b0031e4f0fe330606d73cf708b2
parent f25ef0893d58c1f6b0c71acb85e0b617ad968729
Author: sin <sin@2f30.org>
Date:   Thu, 14 Apr 2016 09:42:11 +0100

move down cipher listing

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

diff --git a/stun.c b/stun.c @@ -118,16 +118,16 @@ main(int argc, char *argv[]) if (argc != 1 || !(sflag ^ (host != NULL))) usage(); - if (strcmp(cipher, "?") == 0) { - listciphers(); - return 0; - } - /* disable core dumps as memory contains the pre-shared key */ rlim.rlim_cur = rlim.rlim_max = 0; 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);