mirror of
https://git.proxmox.com/git/pve-common
synced 2025-06-03 22:52:05 +00:00
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:
parent
202eaa4776
commit
30aeac2ef2
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user