release 2.028005

This commit is contained in:
Oliver Gorwits
2014-07-17 14:24:32 +01:00
parent 2a77e13e10
commit 470c106131
4 changed files with 5 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
2.028005
2.028005 - 2014-07-17
[BUG FIXES]

View File

@@ -57,6 +57,7 @@ requires:
Path::Class: 0.32
Plack: 1.0023
Plack::Middleware::Expires: 0.03
Plack::Middleware::ReverseProxy: 0.15
Role::Tiny: 1.002005
SNMP::Info: 3.18
SQL::Translator: 0.11016
@@ -81,4 +82,4 @@ resources:
homepage: http://netdisco.org/
license: http://opensource.org/licenses/bsd-license.php
repository: git://git.code.sf.net/p/netdisco/netdisco-ng
version: 2.028004
version: 2.028005

View File

@@ -4,7 +4,7 @@ use strict;
use warnings;
use 5.010_000;
our $VERSION = '2.028004';
our $VERSION = '2.028005';
use App::Netdisco::Configuration;
=head1 NAME

View File

@@ -85,7 +85,7 @@ sub ipv4_from_hostname {
return unless $name;
# check /etc/hosts file and short-circuit if found
if (exists $HOSTS{$name}) {
if (exists $HOSTS{$name} and $HOSTS{$name}->[0]->[0]) {
my $ip = NetAddr::IP::Lite->new($HOSTS{$name}->[0]->[0]);
return $ip->addr if $ip and $ip->bits == 32;
}