while playing around with v6beta I found in Currently active DHCP leases section, ticking the select all button and ticking the bin button aferwards results in an error.
I have 3 active DHCP leases and when I try to delete them all at once a red square on the upper right appears saying The provided IPv4 adress is invalid 192,192,192
FTL.log says: 2023-11-28 15:21:51.013 API: The provided IPv4 address is invalid (192,192,192)
Trying to delete the leases 1by1 works quite well.
Thanks for your report. I have a proposed bugfix for this and would greately appreciate if you could verify it. Simply run
pihole checkout web fix/mass_delete_dhcp_leases
to get it and then test away
This bug fix is "proposed" as I am currently unable to test it myself but looking at the code it seems quite obvious to me what the issue was so that this fix is already enough.
lol no worries but hey big up for having such nice colleagues I switched branch and it also removes the DHCP leases.
Unfortunately the squares popped up so fast, my eyes almost weren't able to catch it .
So basically I got 3 blue squares now saying undefinded and 3 green squares for successfully deleted lease. So 2 popups (1 undefined , 1 success) per lease.
I'm very sorry for the confusion but my eyes have tricked me. I did a screen recording to capture the squares output (please bare with me, it's so fast)) and they state:
'successfully deleate lease' in blue for all (3) deleted leases
followed by exactly the same message in (3) green squares