Merge pull request #2219 from dcooper16/fix2198_30

Fix #2198
This commit is contained in:
Dirk Wetter 2022-08-26 10:12:40 +02:00 committed by GitHub
commit bac8cb73f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -834,6 +834,8 @@ fileout_json_finding() {
if [[ "$1" == service ]]; then
if [[ $SERVER_COUNTER -gt 1 ]]; then
echo " ," >> "$JSONFILE"
elif ! "$FIRST_FINDING"; then
echo -n "," >> "$JSONFILE"
fi
target="$NODE"
$do_mx_all_ips && target="$URI"