mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-09-04 13:36:35 +02:00
all: include client IP if ctrld is dnsmasq upstream
So ctrld can record the raw/original client IP instead of looking up from MAC to IP, which may not the right choice in some network setup like using wireguard/vpn on Merlin router.
This commit is contained in:
@@ -119,6 +119,9 @@ func (d *dhcp) String() string {
|
||||
}
|
||||
|
||||
func (d *dhcp) List() []string {
|
||||
if d == nil {
|
||||
return nil
|
||||
}
|
||||
var ips []string
|
||||
d.ip.Range(func(key, value any) bool {
|
||||
ips = append(ips, value.(string))
|
||||
|
||||
Reference in New Issue
Block a user