Skip to content

Commit

Permalink
discovery/dhcp.go: Add isc-dhcpd leases on OPNSense (#139)
Browse files Browse the repository at this point in the history
On OPNSense, the DHCP leases are stored in `/var/dhcpd/var/db/dhcpd.leases`. This patch add these to the `leaseFiles` array.
  • Loading branch information
johannrichard committed Apr 12, 2020
1 parent a533720 commit 1a4ea16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions discovery/dhcp.go
Expand Up @@ -18,6 +18,7 @@ type leaseFile struct {
var leaseFiles = []leaseFile{
{"/var/run/dhcpd.leases", "isc-dhcpd"},
{"/var/lib/dhcp/dhcpd.leases", "isc-dhcpd"},
{"/var/dhcpd/var/db/dhcpd.leases", "isc-dhcpd"},
{"/var/lib/misc/dnsmasq.leases", "dnsmasq"},
{"/tmp/dnsmasq.leases", "dnsmasq"},
{"/tmp/dhcp.leases", "dnsmasq"},
Expand Down

0 comments on commit 1a4ea16

Please sign in to comment.