Fix use_all_a_records option

Thanks to Simon Fraser for reporting it with a patch
This commit is contained in:
Duncan Ferguson 2014-05-13 15:22:18 +01:00
parent 437b8c4867
commit f8723f2dce
2 changed files with 6 additions and 3 deletions

View file

@ -1,6 +1,7 @@
4.02_04 0000-00-00 Duncan Ferguson <duncan_ferguson@user.sf.net>
- Amend 'Changes' file format to match CPAN specs (see CPAN::Changes)
- Correct autoclose short option to what is actually sued (thanks to Simon Fraser)
- Correct autoclose short option to what is actually used (thanks to Simon Fraser)
- Fix 'use_all_a_records' option (thanks to Simon Fraser)
4.02_03 2014-01-31 Duncan Ferguson <duncan_ferguson@user.sf.net>
- Fix 'File->Show History' (Sf support request 41)

View file

@ -405,12 +405,14 @@ sub resolve_names(@) {
my $hostobj = gethostbyname($dirty);
if ( defined($hostobj) ) {
my @alladdrs = map { inet_ntoa($_) } @{ $hostobj->addr_list };
$self->cluster->register_tag( $dirty, @alladdrs );
if ( $#alladdrs > 0 ) {
$self->cluster->register_tag( $dirty, @alladdrs );
logmsg( 3, 'Expanded to ',
$self->cluster->get_tag($dirty) );
join(' ', $self->cluster->get_tag($dirty) ) );
@tag_list = $self->cluster->get_tag($dirty);
}
else {
# don't expand if there is only one record found
logmsg( 3, 'Only one A record' );
}
}