release 2.028005
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| 2.028005 | ||||
| 2.028005 - 2014-07-17 | ||||
|  | ||||
|   [BUG FIXES] | ||||
|  | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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; | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user