feat(diagnostics): add read-only WireGuard health checks
This commit is contained in:
@@ -11,5 +11,9 @@ fi
|
||||
if [[ $# == 0 && "$allow_empty" == "$command_name" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
if [[ $# == 2 && $1 == list && $2 == ruleset ]]; then
|
||||
[[ ${DIAG_NFT_FAIL:-0} == 1 ]] && exit 98
|
||||
printf '%s\n' "${DIAG_NFT_OUTPUT:-}"; exit 0
|
||||
fi
|
||||
printf 'Unexpected mock invocation: %s received arguments\n' "$command_name" >&2
|
||||
exit 99
|
||||
|
||||
Reference in New Issue
Block a user