use String::ShellQuote;
use Time::HiRes qw(usleep gettimeofday tv_interval);
+# avoid warning when parsing long hex values with hex()
+no warnings 'portable'; # Support for 64-bit ints required
+
our @EXPORT_OK = qw(
$IPV6RE
$IPV4RE
$err = $@;
}
- if ($lock_handles->{$$}->{$filename}) {
- my $fh = $lock_handles->{$$}->{$filename};
+ if (my $fh = $lock_handles->{$$}->{$filename}) {
$lock_handles->{$$}->{$filename} = undef;
close ($fh);
}
next if $ports->{$p}; # reserved
my $sock = IO::Socket::INET->new(Listen => 5,
- LocalAddr => 'localhost',
+ LocalAddr => '0.0.0.0',
LocalPort => $p,
ReuseAddr => 1,
Proto => 0);