]> git.proxmox.com Git - pve-common.git/commit
wait_for_vnc_port: allow to enforce IP family
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 4 Dec 2017 10:30:11 +0000 (11:30 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 5 Dec 2017 12:48:49 +0000 (13:48 +0100)
commit590b924e19426c93e0c7f4b969ff80eed66ab29e
treed031f79f961eda50ac47ed8c40153285c5918f19
parent8fd0d63460153d1aeb2933a71ffdd18a8448d960
wait_for_vnc_port: allow to enforce IP family

Most times a port was requested for a specified IP family (v4, v6)
only. Thus also ensure that the port from the respective family got
ready, else we may return on a false positive.

As we had no user setting the $timeout param we can add the $family
param as second one, it'll get used more often, so no need to put it
at the back.

As we do nothing if not defined this does not changes the behavior of
our users yet.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Tools.pm