stun

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

commit ef7bfeaf4c3d3e9a82c011241ff03e50ac8030c2
parent 6909ec1c5e64a4e09507bcc77cabb3c50222f269
Author: sin <sin@2f30.org>
Date:   Sat Apr 30 18:37:19 +0100

Rename STUNUSER to DEFUSER for consistency

Diffstat:
parse.y | 2+-
stun.h | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/parse.y b/parse.y @@ -626,7 +626,7 @@ resetnetconfig(struct netcfg *n) memset(n, 0, sizeof(*n)); strlcpy(n->cipher, DEFCIPHER, sizeof(n->cipher)); strlcpy(n->port, DEFPORT, sizeof(n->port)); - strlcpy(n->user, STUNUSER, sizeof(n->user)); + strlcpy(n->user, DEFUSER, sizeof(n->user)); n->proto = AF_INET; n->devtype = TUNDEV; n->timeout = RECONNECTTIMEO; diff --git a/stun.h b/stun.h @@ -10,12 +10,12 @@ #undef MAX #define MAX(x,y) ((x) > (y) ? (x) : (y)) -#define STUNUSER "nobody" #define AUTHTIMEO 10 /* in seconds */ #define RECONNECTTIMEO 60 /* in seconds */ #define HDRLEN 2 #define MAXPAYLOADLEN 1404 #define NROUNDS 100000 +#define DEFUSER "nobody" #define DEFPORT "12080" #define DEFCIPHER "chacha20-poly1305" #define PATHCONFIG "/etc/stun.conf"