warp-vpn

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

commit ffe19b0b3e2279d09c50fd994ff9b17180c71cfe
parent e275139b3d1a5e182d8f1018ecbd1f228c55dd18
Author: sin <sin@2f30.org>
Date:   Sat,  2 Apr 2016 08:59:17 +0100

fix style

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

diff --git a/stun.c b/stun.c @@ -580,11 +580,10 @@ tunnel(int netfd, int devfd) n = readnet(netfd, buf, MAXPAYLOADLEN); if (n <= 0) return -1; - if (n == BADPKT) { + if (n == BADPKT) logwarn("bad packet"); - } else { + else writedev(devfd, buf, n); - } } if (pfd[1].revents & (POLLIN | POLLHUP)) {