aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-04-15 08:55:44 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-05-08 10:45:54 +0200
commit4f60af9ac00800d5833f6ec4317535aeaddb1616 (patch)
treec51c9447a0cf0e340c20f17828d949cbf89f5b9a /ui
parentff788b6fe67f694666781f821c1af812e8c7999b (diff)
downloadqemu-4f60af9ac00800d5833f6ec4317535aeaddb1616.zip
qemu-4f60af9ac00800d5833f6ec4317535aeaddb1616.tar.gz
qemu-4f60af9ac00800d5833f6ec4317535aeaddb1616.tar.bz2
spice: fix "info spice"
In case no listening address was specified, "info spice" reports "0.0.0.0" as address. Which is incorrect in case spice is listening on ipv6. Replace it by a wildcard "*" to indicate it is not limited to a specific address. Note: Being more specific is not possible without extending the spice-server api. The socket is handled by spice-server not qemu, so qemu can't easily figure the actual socket address. Reported-by: David Jaša <djasa@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/spice-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/spice-core.c b/ui/spice-core.c
index 4cce3b3..6825579 100644
--- a/ui/spice-core.c
+++ b/ui/spice-core.c
@@ -532,7 +532,7 @@ SpiceInfo *qmp_query_spice(Error **errp)
info->auth = g_strdup(auth);
info->has_host = true;
- info->host = g_strdup(addr ? addr : "0.0.0.0");
+ info->host = g_strdup(addr ? addr : "*");
info->has_compiled_version = true;
major = (SPICE_SERVER_VERSION & 0xff0000) >> 16;