Skip to content

Commit

Permalink
Fix whois
Browse files Browse the repository at this point in the history
  • Loading branch information
inventionpro committed Jan 4, 2025
1 parent 15f6b70 commit ec2243e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apis/whois.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ module.exports = {
.join('.');
try {
whois.lookup(url, { timeout: 1000, verbose: true }, function(err, data) {
if (!data) {
res.error('Could not get data from whois server');
return;
}
if (!data[0]) {
res.error('Could not get data from whois server');
return;
Expand Down

0 comments on commit ec2243e

Please sign in to comment.