stun

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

commit 8dd4e2a74a17fee021c26b775709d50730010294
parent 8c2c0b16d73e97ccdaca575814e106201f50053e
Author: sin <sin@2f30.org>
Date:   Wed, 23 Mar 2016 16:52:21 +0000

set reconnect timeout to 1 minute

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

diff --git a/stun.c b/stun.c @@ -41,6 +41,7 @@ #endif #define CHALLENGETIMEO 1000 /* in ms */ +#define RECONNECTTIMEO 60 /* in seconds */ #define HDRLEN 2 #define MTU 1440 @@ -709,7 +710,7 @@ main(int argc, char *argv[]) /* auto-reconnect client */ for (;;) { clientsetup(devfd); - sleep(1); + sleep(RECONNECTTIMEO); } return 0; }