]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: domdisplay: if listen is 0.0.0.0 or [::] print address from URI
authorPavel Hrdina <phrdina@redhat.com>
Mon, 30 May 2016 14:35:17 +0000 (16:35 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 8 Jun 2016 11:54:25 +0000 (13:54 +0200)
commit4ddde38e2ddb2849582c3b05a97947f3b7c9b1ee
tree7ff1fd02942d54ad3fbe8cbf1e5156d04935417f
parent407c6909bc887d77b2c8617fbe6b542d48afec5b
virsh: domdisplay: if listen is 0.0.0.0 or [::] print address from URI

Currently if a guest has listen address 0.0.0.0 or [::] and you run
"virsh domdisplay $domain" you always get "spice://localhost:$port".

We want to print better address if someone is connected from a different
computer using "virsh -c qemu+ssh://some.host/system".  This patch fixes the
behavior of virsh to print in this case "spice://some.host:$port".

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1332446

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
tools/virsh-domain.c