]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/Tools.pm
fix #2618: increase maximum port for spice to 61999
[pve-common.git] / src / PVE / Tools.pm
index db4cdf72a6a6ad21d6f3469f6c82b7efff522bde..f02c0ae3a5acce5bec19cbb1e6906309410f65e5 100644 (file)
@@ -908,9 +908,13 @@ sub next_vnc_port {
     return next_unused_port(5900, 6000, $family, $address);
 }
 
+sub spice_port_range {
+    return (61000, 61999);
+}
+
 sub next_spice_port {
     my ($family, $address) = @_;
-    return next_unused_port(61000, 61099, $family, $address);
+    return next_unused_port(spice_port_range(), $family, $address);
 }
 
 sub must_stringify {