Commit Graph

11 Commits

Author SHA1 Message Date
DL6ER db0054bdb6 Restart FTL after successful Teleporter import and provide more detailed log messages. Also reduce code duplication by defining a common restart_ftl() routine
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-09-12 21:41:11 +02:00
DL6ER 657052a303 Log restarting reason
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-21 14:43:15 +02:00
DL6ER 7aaccbf29a Immediately restart FTL if requested, do not wait for the DNS loop
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-10-21 13:29:30 +02:00
DL6ER 4ea9c1b444 Remove reboot and poweroff actions from the API
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-07-28 22:46:28 +02:00
DL6ER 04e9c7e5f1 Enlarge size of FIFO to 512 lines (before 128 lines). As we reduce the maximul allowed line length from 1024 to 256 bytes, this comes at no extra memory costs
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-26 20:17:04 +02:00
DL6ER c672120123 Add a setting to block possibly harmful actions
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-24 20:49:27 +02:00
DL6ER b5a6ae44aa Add /api/action/flush/arp flushing both the network and network_addresses tables in pihole-FTL.db
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-24 20:47:51 +02:00
DL6ER 3b404ff9a0 Add /api/actions/flush/logs
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-24 20:39:18 +02:00
DL6ER f48683a11e Continue to run webserver even when dnsmasq fails to still serve the web interface. Change the type of api/dns/blocking from bool to enum-string to support the new "failure" state
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-05-24 17:19:12 +02:00
DL6ER d51aa378a3 Add /api/action/reboot and /api/action/poweroff (needs extra capability CAP_SYS_BOOT)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-01-24 20:26:37 +01:00
DL6ER e4383775d1 Add /api/action/gravity which can be used to trigger a run of pihole -g. The output is live streamed using HTTP/1.1 chunked encoding.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2023-01-24 20:15:45 +01:00