• D
    ui: refactor VncDisplay to allow multiple listening sockets · 4ee74fa7
    Daniel P. Berrange 提交于
    Currently there is only a single listener for plain VNC and
    a single listener for websockets VNC. This means that if
    getaddrinfo() returns multiple IP addresses, for a hostname,
    the VNC server can only listen on one of them. This is
    just bearable if listening on wildcard interface, or if
    the host only has a single network interface to listen on,
    but if there are multiple NICs and the VNC server needs
    to listen on 2 or more specific IP addresses, it can't be
    done.
    
    This refactors the VncDisplay state so that it holds an
    array of listening sockets, but still only listens on
    one socket.
    Reviewed-by: NEric Blake <eblake@redhat.com>
    Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
    Message-id: 20170203120649.15637-4-berrange@redhat.com
    Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
    4ee74fa7
vnc.h 17.8 KB