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; return 1;
} }
else { else {
logmsg( 1, "Failed to check host (falling back to gethost): $!" ); logmsg( 1, "Failed to check host (falling back to gethostbyname): $!" );
return gethost($host); return gethostbyname($host);
} }
} }
else { else {
return gethost($host); return gethostbyname($host);
} }
} }