]> git.proxmox.com Git - pve-common.git/blobdiff - data/PVE/Tools.pm
next_migrate_port: higher port range - all other ranges are 100 ports
[pve-common.git] / data / PVE / Tools.pm
index b222debf24ebdd2ee81808e0ecf5ed43a15e7edb..827ca58bcfec494e823b6d957599966f6b548ce7 100644 (file)
@@ -692,7 +692,7 @@ sub next_unused_port {
            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);
@@ -724,7 +724,7 @@ sub next_unused_port {
 }
 
 sub next_migrate_port {
-    return next_unused_port(60000, 60010);
+    return next_unused_port(60000, 60050);
 }
 
 sub next_vnc_port {