]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: fix well-formed migration URI formatting
authorMichael Chapman <mike@very.puzzling.org>
Wed, 23 Oct 2013 04:15:12 +0000 (15:15 +1100)
committerEric Blake <eblake@redhat.com>
Tue, 29 Oct 2013 14:49:42 +0000 (08:49 -0600)
commit0883f3ba04b60ceb5d61abb2f8008c2ff952049c
tree8a66845c1d1581c7f317a4af742783ef83423488
parent919374c73e4efa185d4303281b2071f654cb052c
qemu: fix well-formed migration URI formatting

When adding an automatically allocated port to a well-formed migration
URI, keep it well-formed:

  tcp://1.2.3.4/  ->  tcp://1.2.3.4/:12345   # wrong
  tcp://1.2.3.4/  ->  tcp://1.2.3.4:12345/   # fixed
  tcp://1.2.3.4   ->  tcp://1.2.3.4:12345    # still works
  tcp:1.2.3.4     ->  tcp:1.2.3.4:12345      # still works (old syntax)

Signed-off-by: Michael Chapman <mike@very.puzzling.org>
src/qemu/qemu_migration.c