warp-vpn

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

commit 7a03c8a98efa62545f796d6e08bf6e71dd3bc192
parent ce6fd38f9bdb241e3bec9e4bc00946ebb45f8184
Author: sin <sin@2f30.org>
Date:   Tue, 29 Mar 2016 11:47:35 +0100

move up debug print

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

diff --git a/stun.c b/stun.c @@ -718,6 +718,9 @@ clientsetup(int devfd) return -1; } + if (debug) + logdbg("connected to %s:%s", host, port); + aesinit(&enc, &dec); ret = response(netfd); if (ret < 0) { @@ -731,8 +734,6 @@ clientsetup(int devfd) goto err; } - if (debug) - logdbg("connected to %s:%s", host, port); ret = tunnel(netfd, devfd); err: logwarn("connection to %s:%s dropped", host, port);