]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: don't assume "localhost" only resolves to 1/2 IPs
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 15 Jul 2019 15:58:02 +0000 (16:58 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 15 Jul 2019 16:39:39 +0000 (17:39 +0100)
commitf58bcb80b2ca1791acd5ec0255297a44aa9d4dbe
tree21a6187da608f69f2953bafaeab43f4a7490602a
parentcbfc84f7bcaa9632e6d9fcd4d6b05ddbd393c5f1
tests: don't assume "localhost" only resolves to 1/2 IPs

On Debian derived distros "localhost" can resolve to the normal
"127.0.0.1" and "::1", but it can also resolve to "127.0.1.1"

Rewrite the code so that it doesn't assume a fixed number of IPs.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/virsystemdtest.c