summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/network/networkd-link.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 74dccfccaf..c5434147ed 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -741,8 +741,8 @@ static int link_enter_set_addresses(Link *link) {
return 0;
}
- /* offer 32 addresses starting from the address following the server address */
- r = sd_dhcp_server_configure_pool(link->dhcp_server, &address->in_addr.in, address->prefixlen, 0, 32);
+ /* use the server address' subnet as the pool */
+ r = sd_dhcp_server_configure_pool(link->dhcp_server, &address->in_addr.in, address->prefixlen, 0, 0);
if (r < 0)
return r;