mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Also remove too old host names from the database.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -403,8 +403,9 @@ void parse_neighbor_cache(void)
|
||||
return;
|
||||
}
|
||||
|
||||
// Remove IP addresses not seen for more than 24 hours to clean the network table from dead addresses
|
||||
// Remove IP addresses and host names not seen for more than 24 hours
|
||||
dbquery("DELETE FROM network_addresses WHERE lastSeen < cast(strftime('%%s', 'now') as int)-86400;");
|
||||
dbquery("DELETE FROM network_names WHERE lastSeen < cast(strftime('%%s', 'now') as int)-86400;");
|
||||
|
||||
// Start collecting database commands
|
||||
lock_shm();
|
||||
|
||||
Reference in New Issue
Block a user