]> git.proxmox.com Git - pve-common.git/blobdiff - data/PVE/Tools.pm
Fix next_unused_port already bin detection
[pve-common.git] / data / PVE / Tools.pm
index b222debf24ebdd2ee81808e0ecf5ed43a15e7edb..b666e9b8e915e7e08c4edbdac63593e071ae5a00 100644 (file)
@@ -692,7 +692,7 @@ sub next_unused_port {
            next if $ports->{$p}; # reserved
 
            my $sock = IO::Socket::INET->new(Listen => 5,
            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);
                                             LocalPort => $p,
                                             ReuseAddr => 1,
                                             Proto     => 0);