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-10-11 10:34:35 +0200
commit042bcaf5868b5d3b814ae1877e6d56fde647994f (patch)
tree5d5300ff4a8686f3a3a940f7cb9f2ee5e16fc02b /common.h
parent[tests] Add test cases for lease handling (diff)
downloadwg-dynamic-042bcaf5868b5d3b814ae1877e6d56fde647994f.tar.xz
wg-dynamic-042bcaf5868b5d3b814ae1877e6d56fde647994f.zip
[server] Make leasetime a commandline option
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 426ad20..ea550d9 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 */ \