stun

simple point to point tunnel
git clone git://git.2f30.org/stun.git
Log | Files | Refs | README

commit 23e8a18e82e2482f5f314f5c1f6121f0f45f55d6
parent be7726bad1d6bf2f95215e4091246505734940e9
Author: sin <sin@2f30.org>
Date:   Fri Apr 15 18:28:39 +0100

init logging early

Diffstat:
stun.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/stun.c b/stun.c @@ -122,6 +122,8 @@ main(int argc, char *argv[]) if (argc != 1 || !(sflag ^ (host != NULL))) usage(); + loginit("stun"); + /* disable core dumps as memory contains the pre-shared key */ rlim.rlim_cur = rlim.rlim_max = 0; if (setrlimit(RLIMIT_CORE, &rlim) < 0) @@ -130,7 +132,6 @@ main(int argc, char *argv[]) signal(SIGPIPE, SIG_IGN); if (!debug) daemon(0, 0); - loginit("stun"); /* initialize tun/tap device */ devfd = devopen(argv[0]);