mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-01-31 14:50:58 +03:00
feat: honor download_lists_via_proxy setting and use its outbound section for service mixed inbound routing
This commit is contained in:
@@ -1066,14 +1066,21 @@ sing_box_configure_experimental() {
|
|||||||
sing_box_additional_inbounds() {
|
sing_box_additional_inbounds() {
|
||||||
log "Configure the additional inbounds of a sing-box JSON configuration"
|
log "Configure the additional inbounds of a sing-box JSON configuration"
|
||||||
|
|
||||||
config=$(
|
local download_lists_via_proxy
|
||||||
sing_box_cf_add_mixed_inbound_and_route_rule \
|
config_get_bool download_lists_via_proxy "settings" "download_lists_via_proxy" 0
|
||||||
"$config" \
|
if [ "$download_lists_via_proxy" -eq 1 ]; then
|
||||||
"$SB_SERVICE_MIXED_INBOUND_TAG" \
|
local download_lists_via_proxy_section section_outbound_tag
|
||||||
"$SB_SERVICE_MIXED_INBOUND_ADDRESS" \
|
config_get download_lists_via_proxy_section "settings" "download_lists_via_proxy_section"
|
||||||
"$SB_SERVICE_MIXED_INBOUND_PORT" \
|
section_outbound_tag="$(get_outbound_tag_by_section "$download_lists_via_proxy_section")"
|
||||||
"$SB_MAIN_OUTBOUND_TAG"
|
config=$(
|
||||||
)
|
sing_box_cf_add_mixed_inbound_and_route_rule \
|
||||||
|
"$config" \
|
||||||
|
"$SB_SERVICE_MIXED_INBOUND_TAG" \
|
||||||
|
"$SB_SERVICE_MIXED_INBOUND_ADDRESS" \
|
||||||
|
"$SB_SERVICE_MIXED_INBOUND_PORT" \
|
||||||
|
"$section_outbound_tag"
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
config_foreach configure_section_mixed_proxy "section"
|
config_foreach configure_section_mixed_proxy "section"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user