warp-vpn

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

commit 64136df5a65d50d7ca2e55f7dfbe671215691d97
parent f77606426b077f21d4fd871329c5537eb6913028
Author: sin <sin@2f30.org>
Date:   Tue, 29 Mar 2016 12:28:23 +0100

restore nodelay, helps with nfs

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

diff --git a/stun.c b/stun.c @@ -664,6 +664,8 @@ serversetup(int devfd) logdbg("remote peer connected: %s", inet_ntoa(remote.sin_addr)); + setsockopt(netfd, IPPROTO_TCP, TCP_NODELAY, (int []){1}, sizeof(int)); + aesinit(&enc, &dec); ret = challenge(netfd); if (ret < 0) { @@ -718,6 +720,8 @@ clientsetup(int devfd) return -1; } + setsockopt(netfd, IPPROTO_TCP, TCP_NODELAY, (int []){1}, sizeof(int)); + if (debug) logdbg("connected to %s:%s", host, port);