fix: resolve crash on geoip_country selection and harden hosts list download (1.3.20)

This commit is contained in:
Dushnilin
2026-09-04 17:46:48 +03:00
parent 2f83954255
commit 9927c04a6f
7 changed files with 245 additions and 41 deletions
@@ -549,6 +549,14 @@ function dscp_value(section) {
return list_option_value_from_array(dscp_list(section));
}
function contains(arr, val) {
if (type(arr) != "array") return false;
for (let item in arr) {
if (item == val) return true;
}
return false;
}
function geoip_country_list(section) {
let raw = whitespace_list_value(section, "geoip_country");
let result = [];