Исправить ошибку outbound в podkop

This commit is contained in:
yandexru45
2026-03-07 16:39:34 +03:00
parent e8a764bbb3
commit 676936650d
2 changed files with 7 additions and 1 deletions

View File

@@ -917,7 +917,11 @@ configure_outbound_handler() {
fi
# Parse subscription outbounds
config="$(sing_box_cf_add_subscription_outbounds "$config" "$section" "$subscription_json_path")"
if ! sing_box_cf_add_subscription_outbounds "$config" "$section" "$subscription_json_path" > /dev/null; then
log "No proxy outbounds found in subscription for section '$section'. Aborted." "fatal"
exit 1
fi
config="$SING_BOX_CF_LAST_CONFIG"
if [ -z "$SUBSCRIPTION_OUTBOUND_TAGS" ]; then
log "No proxy outbounds found in subscription for section '$section'. Aborted." "fatal"

View File

@@ -349,6 +349,7 @@ sing_box_cf_add_subscription_outbounds() {
SUBSCRIPTION_OUTBOUND_TAGS=""
SUBSCRIPTION_OUTBOUND_NAMES=""
SING_BOX_CF_LAST_CONFIG="$config"
if [ ! -f "$subscription_json_path" ]; then
log "Subscription JSON file not found: $subscription_json_path" "error"
@@ -421,6 +422,7 @@ sing_box_cf_add_subscription_outbounds() {
done
log "Added $((i - 1)) subscription outbounds for section '$section'" "info"
SING_BOX_CF_LAST_CONFIG="$config"
echo "$config"
}