dhcp4d: reduce lease period to 20 minutes

This forces devices to renew the lease more often, which is nice when you want
to tie home automation behavior to DHCP lease validity.
This commit is contained in:
Michael Stapelberg 2020-01-31 18:23:50 +01:00
parent e76886dab4
commit 41985d6378

View File

@ -89,7 +89,7 @@ func NewHandler(dir string, iface *net.Interface, ifaceName string, conn net.Pac
serverIP: serverIP,
start: start,
leaseRange: 230,
leasePeriod: 2 * time.Hour,
leasePeriod: 20 * time.Minute,
options: dhcp4.Options{
dhcp4.OptionSubnetMask: []byte{255, 255, 255, 0},
dhcp4.OptionRouter: []byte(serverIP),