diff options
author | Thomas Gschwantner <tharre3@gmail.com> | 2019-09-29 21:00:45 +0200 |
---|---|---|
committer | Thomas Gschwantner <tharre3@gmail.com> | 2019-12-11 06:22:17 +0100 |
commit | 77366185a8ad25c872c50eb11a8403920cd34fd4 (patch) | |
tree | 170bfb45fa5799c2078f8a33d91e59f87f78df72 /lease.c | |
parent | Rename struct ip_pool to be more descriptive (diff) | |
download | wg-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |