net: fix tests for systems without IPv6 entries in /etc/hosts.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 4 Oct 2011 01:40:08 +0000 (12:10 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 4 Oct 2011 01:40:08 +0000 (12:10 +1030)
commit5b189c748dbc4b09e8180ce6fc6c2d0411968c48
tree1da58431abcb66d532e7ff6cf8dd52ad5fe13181
parentc6e453df2c9c82cc64f5477cb9824845225be598
net: fix tests for systems without IPv6 entries in /etc/hosts.

We fake up a dual IPv4/IPv6 response to localhost for testing, but it
assumed localhost6 or ip6-localhost entries.  Fall back to "::1" which
should always work.
ccan/net/test/run.c