mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-01-29 22:00:42 +03:00
feat: honor download_lists_via_proxy and use its outbound section as detour tag for rule set
This commit is contained in:
@@ -1364,7 +1364,10 @@ get_service_proxy_address() {
|
|||||||
get_download_detour_tag() {
|
get_download_detour_tag() {
|
||||||
config_get_bool download_lists_via_proxy "settings" "download_lists_via_proxy" 0
|
config_get_bool download_lists_via_proxy "settings" "download_lists_via_proxy" 0
|
||||||
if [ "$download_lists_via_proxy" -eq 1 ]; then
|
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
|
else
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user