don't call nameservers() with a false argument

parent 1cdbaf44
......@@ -49,7 +49,7 @@ my $resolver = Net::DNS::Resolver->new;
$resolver->debug($opt->{'debug'});
$resolver->dnssec(1);
$resolver->adflag(1);
$resolver->nameservers($opt->{'nameserver'});
$resolver->nameservers($opt->{'nameserver'}) if ($opt->{'nameserver'});
note('retrieving response from server...');
my $response = $rdap->fetch($url);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment