aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2019-09-30 08:44:34 +0200
committerLinus Nordberg <linus@nordberg.se>2019-09-30 08:44:34 +0200
commit29ed5cd5d57dc7a30ca08d45877a0fb2fcfce289 (patch)
tree9210b856ae150ce38bc5b0deb5c42fa961224386 /common.h
parent[tests] Add test cases for lease handling (diff)
downloadwg-dynamic-29ed5cd5d57dc7a30ca08d45877a0fb2fcfce289.tar.xz
wg-dynamic-29ed5cd5d57dc7a30ca08d45877a0fb2fcfce289.zip
[server] Make leasetime an optional command line argument
Diffstat (limited to 'common.h')
-rw-r--r--common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.h b/common.h
index fcb0f0e..5ac2f09 100644
--- a/common.h
+++ b/common.h
@@ -25,7 +25,7 @@
static const char WG_DYNAMIC_ADDR[] = "fe80::";
static const uint16_t WG_DYNAMIC_PORT = 970; /* ASCII sum of "wireguard" */
-#define WG_DYNAMIC_LEASETIME 10 /* NOTE: 10s is good for testing purposes */
+#define WG_DYNAMIC_DEFAULT_LEASETIME 3600
#define ITEMS \
E(WGKEY_UNKNOWN, "") /* must be the first entry */ \