mirror of
https://github.com/openwrt/luci.git
synced 2026-05-31 10:31:55 +08:00
rpcd-mod-luci: fix default odhcpd statefile location
The default location for the lease file has changed in odhcpd, update rpcd-mod-luci to reflect the new default location. See: https://github.com/openwrt/openwrt/blob/c9e7f32c4c09277ae945299d068230226994c19c/package/network/services/odhcpd/files/odhcpd.defaults#L29-L31 Signed-off-by: David Härdeman <david@hardeman.nu>
This commit is contained in:
committed by
Paul Donald
parent
3b7869e6df
commit
338b379d4d
@@ -466,7 +466,7 @@ lease_open(void)
|
||||
add_leasefile("/tmp/dhcp.leases", false);
|
||||
|
||||
if (!find_leasefiles(uci, true))
|
||||
add_leasefile("/tmp/hosts/odhcpd", true);
|
||||
add_leasefile("/tmp/odhcpd.leases", true);
|
||||
|
||||
uci_free_context(uci);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user