warp-vpn

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

commit 8ec0b3f5008dbd22790c38bd705333422f09c0ba
parent 5fff73417cc6756ae8c12921d19b6ef916dd0f88
Author: sin <sin@2f30.org>
Date:   Mon Mar 21 12:44:13 +0000

print remote client address in debug mode

Diffstat:
stun.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/stun.c b/stun.c @@ -366,6 +366,9 @@ serversetup(int tunfd) (socklen_t []){sizeof(remote)}); if (netfd < 0) err(1, "accept"); + if (debug) + printf("remote peer connected: %s\n", + inet_ntoa(remote.sin_addr)); setsockopt(netfd, IPPROTO_TCP, TCP_NODELAY, (int []){1}, sizeof(int));