warp-vpn

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

commit fc3c9fccae860306734588b874c597b2ac7655fe
parent a53328fd9d16c4f1252b4082b314e6877b5a79d9
Author: sin <sin@2f30.org>
Date:   Wed, 13 Apr 2016 12:24:13 +0100

print some info when new client connects

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

diff --git a/stun.c b/stun.c @@ -150,6 +150,7 @@ main(int argc, char *argv[]) netreset(); continue; } + logdbg("new client connected: %d", netfd); tunnel(netfd, devfd); close(netfd); netreset(); @@ -170,6 +171,7 @@ main(int argc, char *argv[]) sleep(RECONNECTTIMEO); continue; } + logdbg("connected to %s:%s", host, port); tunnel(netfd, devfd); close(netfd); netreset();