]> git.proxmox.com Git - qemu-server.git/commit
fix #1229: more explicit spice port allocation
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 30 May 2017 13:30:14 +0000 (15:30 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 31 May 2017 06:07:34 +0000 (08:07 +0200)
commit911524414e3a100b026f564c48304a33334e5951
tree26eb15f7be75784f1469ff8175ef765d9c8d1019
parent95f42d61faf2ef855f074d7edf7eb98ed9bf089d
fix #1229: more explicit spice port allocation

We cannot look for ports on "any" wildcard address while
letting qemu bind to "localhost", this may lead to a qemu
process occupying ::1 while the next search successfully
finds the same port available for IPv4's '*' address.

Instead, we now lookup the IP of the desired family for
'localhost'. Note that while we could simply be hardcoding
::1 or 127.0.0.1, with this code we are protocol agnostic.
PVE/QemuServer.pm