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:
parent
e76886dab4
commit
41985d6378
@ -89,7 +89,7 @@ func NewHandler(dir string, iface *net.Interface, ifaceName string, conn net.Pac
|
|||||||
serverIP: serverIP,
|
serverIP: serverIP,
|
||||||
start: start,
|
start: start,
|
||||||
leaseRange: 230,
|
leaseRange: 230,
|
||||||
leasePeriod: 2 * time.Hour,
|
leasePeriod: 20 * time.Minute,
|
||||||
options: dhcp4.Options{
|
options: dhcp4.Options{
|
||||||
dhcp4.OptionSubnetMask: []byte{255, 255, 255, 0},
|
dhcp4.OptionSubnetMask: []byte{255, 255, 255, 0},
|
||||||
dhcp4.OptionRouter: []byte(serverIP),
|
dhcp4.OptionRouter: []byte(serverIP),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user