all: watch lease files if send client info enabled

So users who run ctrld in Linux can still see clients info, even though
it's not an router platform that ctrld supports.
This commit is contained in:
Cuong Manh Le authored and Cuong Manh Le committed 2023-08-09 23:54:23 +07:00
1 parent 472bb05e95
commit 9fe6af684f
8 files changed
+250 -223

No files matched your search

+8
View File
@@ -9,3 +9,11 @@ type ClientInfo struct {
IP string
Hostname string
}
// LeaseFileFormat specifies the format of DHCP lease file.
type LeaseFileFormat string
const (
Dnsmasq LeaseFileFormat = "dnsmasq"
IscDhcpd = "isc-dhcpd"
)