harryhorton / node-nmap

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

Ignoring some fields if the portItem has no service #29

Closed jrejaud closed 3 years ago

jrejaud commented 7 years ago

If the portItem doesn't have a service array (which is the case for the server I was hitting), the app will crash.

This change will ignore the service fields if the array is empty.

harryhorton commented 6 years ago

36

pfortuna commented 5 years ago

Hey @Johnhhorton, I ran into this problem as well. I've tested this fix and it works. Can you accept this PR, please?

I can help with the maintenance of this project, but I don't have a lot of time myself.

thx