mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
sd-dhcp-server: change default lease time form 1m to 1h
The short lease was useful for testing, but in real-world usage it is pointless to keep leases this short. That said, the cost of lease renewal is really low, so we keep the lease still relatively short at one hour to not get into hard-to-hit problems with lease exhaustion etc.
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#include "dhcp-server-internal.h"
|
||||
#include "dhcp-internal.h"
|
||||
|
||||
#define DHCP_DEFAULT_LEASE_TIME 60
|
||||
#define DHCP_DEFAULT_LEASE_TIME 3600 /* one hour */
|
||||
|
||||
int sd_dhcp_server_set_lease_pool(sd_dhcp_server *server, struct in_addr *address,
|
||||
size_t size) {
|
||||
|
||||
Reference in New Issue
Block a user