harryhorton / node-nmap

NPM package for interfacing with local NMAP installation
MIT License
67 stars 26 forks source link

Handle ports without a service name #18

Closed mattiash closed 8 years ago

mattiash commented 8 years ago

If you try to scan a port that nmap does not have a name for and that port is open, node-nmap prints an error that it is not able to find the service name. This patch fixes that by only adding the service property if it is available.

harryhorton commented 8 years ago

Good catch, I'll test, rebuild, and push this week.

mattiash commented 8 years ago

Thank you!