Do not attempt to re-resolve IP addresses

This commit is contained in:
duncan_ferguson 2008-02-05 09:43:09 +00:00
parent fca92a477b
commit 2080756a99
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,7 @@
??? Duncan Ferguson <duncan_ferguson@user.sf.net> - v3.24-1
* Do not attempt to re-resolve IP addresses
2008-01-23 Duncan Ferguson <duncan_ferguson@user.sf.net> - v3.23-1
* Apply bugfix supplied by Jima

View file

@ -823,6 +823,10 @@ sub setup_helper_script() {
sub check_host($) {
my $host = shift;
if ( $host =~ m/^(\d{1,3}\.?){4}$/ ) {
logmsg( 2, "Not resolving IP address '$host'" );
return 1;
}
if ( $config{method} eq "ssh" ) {
logmsg( 1, "Attempting name resolution via user ssh config file" );
if ( $ssh_hostnames{$host} ) {