]> git.proxmox.com Git - mirror_qemu.git/commit
ui: let VNC server listen on all resolved IP addresses
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 3 Feb 2017 12:06:47 +0000 (12:06 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 9 Feb 2017 16:28:49 +0000 (17:28 +0100)
commit57a6d6d538c596292003d131035dc4f7cb44474d
tree01cff100bed5d043c495d7a78c74f3df98a5040c
parent8bd22f477f68bbd7a9c88e926e7a58bf65605e39
ui: let VNC server listen on all resolved IP addresses

Remove the limitation that the VNC server can only listen on
a single resolved IP address. This uses the new DNS resolver
API to resolve a SocketAddress struct into an array of
SocketAddress structs containing raw IP addresses. The VNC
server will then attempt to listen on all resolved IP addresses.
The server must successfully listen on at least one of the
resolved IP addresses, otherwise an error will be reported.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 20170203120649.15637-7-berrange@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc.c