ui: add ability to specify multiple VNC listen addresses
commit396f935a9aff3cefd288bdb2b20024fb9dcfa062
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 3 Feb 2017 12:06:49 +0000 (3 12:06 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 9 Feb 2017 16:28:49 +0000 (9 17:28 +0100)
treee3c0468716027935641540daa71fd4bb389e02fd
parente998e2090fffe8083af381e41dc30a25e22fc28b
ui: add ability to specify multiple VNC listen addresses

This change allows the listen address and websocket address
options for -vnc to be repeated. This causes the VNC server
to listen on multiple addresses. e.g.

 $ $QEMU -vnc vnc=localhost:1,vnc=unix:/tmp/vnc,\
              websocket=127.0.0.1:8080,websocket=[::]:8081

results in listening on

127.0.0.1:5901, 127.0.0.1:8080, ::1:5901, :::8081 & /tmp/vnc

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