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-12-11 06:22:17 +0100
commit77366185a8ad25c872c50eb11a8403920cd34fd4 (patch)
tree170bfb45fa5799c2078f8a33d91e59f87f78df72 /lease.c
parentRename struct ip_pool to be more descriptive (diff)
downloadwg-dynamic-77366185a8ad25c872c50eb11a8403920cd34fd4.tar.xz
wg-dynamic-77366185a8ad25c872c50eb11a8403920cd34fd4.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 37396e5..0272140 100644
--- a/lease.c
+++ b/lease.c
@@ -238,7 +238,7 @@ struct wg_dynamic_lease *set_lease(wg_key pubkey, uint32_t leasetime,
memset(&lease->ipv4, 0, sizeof(lease->ipv4));
} else {
uint32_t 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);
}