Apply fix form Bogdan Pintea for failing DNS resolution

This commit is contained in:
duncan_ferguson 2008-12-20 22:23:30 +00:00
parent a1ddb8a202
commit 9a48cd4cc6

View file

@ -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);
}
}