Skip to content

Commit

Permalink
Merge pull request #1 from hirobanex/master
Browse files Browse the repository at this point in the history
Agent::DNSの$hostにArrayRefを入れるように修正しました
  • Loading branch information
tokuhirom committed May 16, 2011
2 parents 329b1d9 + 8e35013 commit 1b1f8e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/App/MadEye/Plugin/Agent/DNS.pm
Expand Up @@ -14,7 +14,7 @@ sub is_dead {

my $dns = Net::DNS::Resolver->new(
recurse => 0,
nameservers => [$host],
nameservers => ref($host) eq 'ARRAY' ? $host : [$host],
);
$dns->tcp_timeout($timeout);
$dns->udp_timeout($timeout);
Expand Down

0 comments on commit 1b1f8e9

Please sign in to comment.