Update blocklistProviders, extract names from json

This commit is contained in:
billz
2025-06-17 06:59:14 -07:00
parent 9c4cee49cd
commit 575876406c

View File

@@ -570,8 +570,13 @@ function dnsServers()
function blocklistProviders()
{
$data = json_decode(file_get_contents("./config/blocklists.json"));
return (array) $data;
$raw = json_decode(file_get_contents("./config/blocklists.json"), true);
$result = [];
foreach ($raw as $group => $entries) {
$result[$group] = array_keys($entries);
}
return $result;
}
function optionsForSelect($options)