mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-29 12:38:19 +00:00
use ReuseAddr for vncproxy
to avoid "Socket already in use" errors, when quickly opening/closing console sessions on the webinterface Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
175b51fdb5
commit
dd32a4664f
@ -1433,6 +1433,7 @@ __PACKAGE__->register_method({
|
|||||||
$cmd = [@$remcmd, "/usr/sbin/qm", 'vncproxy', $vmid];
|
$cmd = [@$remcmd, "/usr/sbin/qm", 'vncproxy', $vmid];
|
||||||
|
|
||||||
my $sock = IO::Socket::IP->new(
|
my $sock = IO::Socket::IP->new(
|
||||||
|
ReuseAddr => 1,
|
||||||
Listen => 1,
|
Listen => 1,
|
||||||
LocalPort => $port,
|
LocalPort => $port,
|
||||||
Proto => 'tcp',
|
Proto => 'tcp',
|
||||||
|
Loading…
Reference in New Issue
Block a user