Merge pull request #2211 from dcooper16/fix2198

Fix #2198
This commit is contained in:
Dirk Wetter 2022-08-22 11:55:33 +02:00 committed by GitHub
commit 349486fb39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

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