feat: honor download_lists_via_proxy and use its outbound section as detour tag for rule set

This commit is contained in:
Andrey Petelin
2025-10-14 20:22:46 +05:00
parent 661ba64879
commit fa152c3abf

View File

@@ -1364,7 +1364,10 @@ get_service_proxy_address() {
get_download_detour_tag() {
config_get_bool download_lists_via_proxy "settings" "download_lists_via_proxy" 0
if [ "$download_lists_via_proxy" -eq 1 ]; then
echo "$SB_MAIN_OUTBOUND_TAG"
local download_lists_via_proxy_section section_outbound_tag
config_get download_lists_via_proxy_section "settings" "download_lists_via_proxy_section"
section_outbound_tag="$(get_outbound_tag_by_section "$download_lists_via_proxy_section")"
echo "$section_outbound_tag"
else
echo ""
fi