FurqanSoftware / node-whois

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

ReferralServer can contain port #120

Open nemanjan00 opened 1 year ago

nemanjan00 commented 1 year ago

Hello, I have encountered error where following ReferralServer. Looks like lib is not parsing port from that field

ReferralServer:  rwhois://rwhois.psychz.net:4321

Lib still tries to use port 43

Looks like this regex is not matching port:

https://github.com/FurqanSoftware/node-whois/blob/master/index.coffee#L95

And then logic after that is not handling port