]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
spice: do not require TCP ports
authorMarc-André Lureau <marcandre.lureau@gmail.com>
Tue, 11 Nov 2014 12:39:19 +0000 (13:39 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 16 Dec 2014 13:15:29 +0000 (14:15 +0100)
It is possible to use Spice server without TCP port.  On local VM,
qemu (and libvirt) can add new clients thanks to QMP add_client command.

Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/spice-core.c

index 6467fa477674a454e61ed5014bd3d1c766db8e78..e8d4baedd85fa4c14d5eb009f146e70502b8d7f6 100644 (file)
@@ -661,10 +661,6 @@ void qemu_spice_init(void)
     }
     port = qemu_opt_get_number(opts, "port", 0);
     tls_port = qemu_opt_get_number(opts, "tls-port", 0);
-    if (!port && !tls_port) {
-        error_report("neither port nor tls-port specified for spice");
-        exit(1);
-    }
     if (port < 0 || port > 65535) {
         error_report("spice port is out of range");
         exit(1);