FurqanSoftware / node-whois

A simple WHOIS client for NodeJS
https://npmjs.org/package/whois
Other
255 stars 78 forks source link

Fix issues with .ai domains #86

Closed zbone3 closed 5 years ago

zbone3 commented 5 years ago

The whois server in the result would be parsed as: : whois.nic.ai since the raw result was :: whois.nic.ai

This results in an error: Uncaught RangeError: "port" option should be >= 0 and < 65536: whois.nic.ai

to reproduce use dot.ai as the domain (added in the tests as well)

hjr265 commented 5 years ago

Thank you, @zbone3!