Commit baf359fe authored by Vitaly Lipatov's avatar Vitaly Lipatov

router: fix read_group_config return code when no options file

has_option returns false when options file is absent, making read_group_config return 1 and skip the entire group. Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent dcae9c4f
...@@ -199,7 +199,7 @@ read_group_config() ...@@ -199,7 +199,7 @@ read_group_config()
# Detect metric mode # Detect metric mode
grep -v '^#' "$dir/gateway" | grep -q 'metric' && has_metric=1 grep -v '^#' "$dir/gateway" | grep -q 'metric' && has_metric=1
has_option "$dir" "set-default" && opt_set_default=1 has_option "$dir" "set-default" && opt_set_default=1 || true
} }
# Build route_via suffix for a list's table (used by --add/--del/--flush) # Build route_via suffix for a list's table (used by --add/--del/--flush)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment