summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarunknown <unknown@unknown.invalid>2015-03-01 06:19:38 +0400
committerLibravatarJanik Kleinhoff <janik@kleinhoff.de>2015-03-01 06:19:38 +0400
commit5a5fd4335e46f3b8f77942efa985972ae6403500 (patch)
tree4bb3d32849c99b183818be3156e03f3de280995a
parente2ea35779556658a899ee23b7b811997979e41c4 (diff)
modules/util.pl: diagnostics
-rw-r--r--modules/util.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/util.pl b/modules/util.pl
index 375d2e5..dfb715b 100644
--- a/modules/util.pl
+++ b/modules/util.pl
@@ -6,6 +6,7 @@ use strict;
use Term::ANSIColor qw (:constants);
use Socket qw( inet_aton inet_ntoa );
use Data::Dumper;
+use Carp qw(cluck);
%::RISKS =
(
@@ -112,6 +113,7 @@ sub speak
#this item is a stub, dur
sub hostip {
+ #cluck "Calling gethostbyname in hostip";
return gethostbyname($_[0]);
}
@@ -219,6 +221,7 @@ sub getHostIP
my $host = join('.', unpack('C4', pack('N', (hex($splitip[6] . $splitip[7])^hex('ffffffff')))));
return dottedQuadToInt(undef, $host);
}
+ #cluck "Calling gethostbyname in getHostIP";
my @resolve = gethostbyname($host);
return unless @resolve;
return dottedQuadToInt(undef, join('.', unpack('C4', $resolve[4])));