summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorTobin South <tobin.south@gmail.com>2026-05-22 07:57:14 -0700
committerGitHub <noreply@github.com>2026-05-22 09:57:14 -0500
commitcb8424c0997bd26effb85fc182ae8737ace3b06f (patch)
tree955750eaace1b83a22fd4e341e71a9044ab9b000 /plugins
parent1d5ba6426aa27bab9dcf69e89b2f119609ce0885 (diff)
Fix MCP URL probe: connection failure was reported as PASS (#1922)
curl writes "000" to -w '%{http_code}' on a connection failure AND exits nonzero. The previous fallback put the echo inside the command substitution — both wrote, the captured value was "000000", and the case statement's 000) arm didn't match, so dead hosts fell through to PASS. Move the fallback assignment outside the substitution so the captured value is exactly "000" and connection failures fail. Also skip entries with an empty url field — those are placeholders awaiting user config, not dead endpoints, and would false-fail.
Diffstat (limited to 'plugins')
0 files changed, 0 insertions, 0 deletions