harryhorton/node-nmap

Breaks on Linux / OS X when no hostname is present.

tstrimple opened this issue · 2 comments

The scan breaks due to this line:

https://github.com/Johnhhorton/node-nmap/blob/master/index.js#L124

Non-Windows operating systems return "\n", not "\r\n".

Thanks for catching that. I'll check this on a vm and fix it.

Added additional check for \n