fix #2618: increase maximum port for spice to 61999

and expose the range in its own sub to reuse it in http-server

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-03-03 10:47:30 +01:00 committed by Thomas Lamprecht
parent 202eaa4776
commit 30aeac2ef2

View 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 {