Just doing os.Stdout.Write(b) won't emit a newline and to create sequential JSON records (when scanning multiple hosts at one time) that are valid ndjson requires a newline to be at the end. This tiny commit just adds a newline to the byte array before the Write.
Just doing
os.Stdout.Write(b)
won't emit a newline and to create sequential JSON records (when scanning multiple hosts at one time) that are valid ndjson requires a newline to be at the end. This tiny commit just adds a newline to the byte array before theWrite
.