From 470c1061317a5931337ac3ba8681c7ed8c8b99a4 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Thu, 17 Jul 2014 14:24:32 +0100 Subject: [PATCH] release 2.028005 --- Netdisco/Changes | 2 +- Netdisco/META.yml | 3 ++- Netdisco/lib/App/Netdisco.pm | 2 +- Netdisco/lib/App/Netdisco/Util/DNS.pm | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Netdisco/Changes b/Netdisco/Changes index 87208d09..d083b052 100644 --- a/Netdisco/Changes +++ b/Netdisco/Changes @@ -1,4 +1,4 @@ -2.028005 +2.028005 - 2014-07-17 [BUG FIXES] diff --git a/Netdisco/META.yml b/Netdisco/META.yml index a7ef9527..815ee1d3 100644 --- a/Netdisco/META.yml +++ b/Netdisco/META.yml @@ -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 diff --git a/Netdisco/lib/App/Netdisco.pm b/Netdisco/lib/App/Netdisco.pm index 11d45996..bc23871a 100644 --- a/Netdisco/lib/App/Netdisco.pm +++ b/Netdisco/lib/App/Netdisco.pm @@ -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 diff --git a/Netdisco/lib/App/Netdisco/Util/DNS.pm b/Netdisco/lib/App/Netdisco/Util/DNS.pm index 77b64ba9..a8712f30 100644 --- a/Netdisco/lib/App/Netdisco/Util/DNS.pm +++ b/Netdisco/lib/App/Netdisco/Util/DNS.pm @@ -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; }