luci-app-pbr: bugfix

* fix: allow explicitly supported interfaces as targets in policies

Signed-off-by: Stan Grishin <stangri@melmac.ca>
This commit is contained in:
Stan Grishin
2026-03-25 00:41:29 +00:00
parent 3df99c61e3
commit e41b7c1d61

View File

@@ -194,7 +194,7 @@ get_supported_interfaces() {
config_foreach _build_ifaces_supported 'interface'
is_tor_running && ifacesSupported="$ifacesSupported tor"
for i in $supported_interface; do
is_xray "$i" && ifacesSupported="$ifacesSupported $i"
str_contains_word "$ifacesSupported" "$i" || ifacesSupported="${ifacesSupported}${i} "
done
[ "${webui_show_ignore_target:-0}" -eq '1' ] && ifacesSupported="$ifacesSupported ignore"
json_init