stun

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

commit 3e666b5ab81704b4adbf49e362c8fa3d82f7c83a
parent 39166bfc5470797db57977c1341d2c5dc35aaedc
Author: sin <sin@2f30.org>
Date:   Tue Mar 22 10:12:45 +0000

Print disconnects in debug mode

Diffstat:
stun.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/stun.c b/stun.c @@ -446,6 +446,9 @@ serversetup(int tunfd) tunnel(netfd, tunfd); close(netfd); + if (debug) + printf("remote peer disconnected: %s\n", + inet_ntoa(remote.sin_addr)); } }