If I make a config file change, do I have to restart anything?
I was noticing devices being added that don't exist on my network anymore (phones from a guest who is not here anymore). I delete them, but they come back. I guess this is because I have it using Pi-hole network table as secondary source So I edit the config to turn that off, but do I have to restart anything? I ask, because the devices keep coming back!
SUGGESTION: be able to blacklist a device by MAC address
I think you must deactivate DHCP method.
Blacklist will be available in future version.
I found that if I start out using either the Pi-hole network table or DHCP method, and then turn them off, devices are still left in the Pi.Alert tables where that info is copied into.
I had to add a DELETE statement to each function if the config was off to clear those tables
`
def copy_pihole_network ():
# check if Pi-hole is active
if not PIHOLE_ACTIVE :
sql.execute ("DELETE FROM PiHole_Network")
return
`
`
def read_DHCP_leases ():
# check DHCP Leases is active
if not DHCP_ACTIVE :
sql.execute ("DELETE FROM DHCP_Leases")
return
`