mirror of
https://github.com/duncs/clusterssh.git
synced 2025-04-22 09:22:24 +00:00
Apply fix form Bogdan Pintea for failing DNS resolution
This commit is contained in:
parent
a1ddb8a202
commit
9a48cd4cc6
1 changed files with 3 additions and 3 deletions
|
@ -855,12 +855,12 @@ sub check_host($) {
|
|||
return 1;
|
||||
}
|
||||
else {
|
||||
logmsg( 1, "Failed to check host (falling back to gethost): $!" );
|
||||
return gethost($host);
|
||||
logmsg( 1, "Failed to check host (falling back to gethostbyname): $!" );
|
||||
return gethostbyname($host);
|
||||
}
|
||||
}
|
||||
else {
|
||||
return gethost($host);
|
||||
return gethostbyname($host);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue