aboutsummaryrefslogtreecommitdiffstats
path: root/lease.c
diff options
context:
space:
mode:
authorThomas Gschwantner <tharre3@gmail.com>2019-09-29 21:00:45 +0200
committerThomas Gschwantner <tharre3@gmail.com>2019-09-29 21:00:45 +0200
commitf73da8f4118142ad06e1fbd0d711fadc9c8c1975 (patch)
treed7c867ea023de3c29b4d965e0b550d54c0b32aff /lease.c
parentRename struct ip_pool to be more descriptive (diff)
downloadwg-dynamic-f73da8f4118142ad06e1fbd0d711fadc9c8c1975.tar.xz
wg-dynamic-f73da8f4118142ad06e1fbd0d711fadc9c8c1975.zip
radix-trie: allow full use of the v4 address space
Diffstat (limited to 'lease.c')
-rw-r--r--lease.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lease.c b/lease.c
index 9613475..f0ec97c 100644
--- a/lease.c
+++ b/lease.c
@@ -115,7 +115,7 @@ struct wg_dynamic_lease *new_lease(wg_key pubkey, uint32_t leasetime,
if (wants_ipv4) {
if (!ipv4) {
index = random_bounded(ipns.total_ipv4);
- debug("new_lease(v4): %u of %u\n", index,
+ debug("new_lease(v4): %u of %ju\n", index,
ipns.total_ipv4);
ipp_addnth_v4(&ipns, &lease->ipv4, index);