mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-22 06:32:55 -05:00
Fixup ipv6 availability test.
git-svn-id: file:///svn/unbound/trunk@1131 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
a64adc395f
commit
56f3cd33ec
1 changed files with 4 additions and 5 deletions
|
|
@ -17,13 +17,12 @@ else
|
|||
JOBCONTROL=yes
|
||||
fi
|
||||
|
||||
# test for ipv6, uses dig 9.4.2 peculiarity (test @ before -v).
|
||||
if dig @::1 -v >/dev/null 2>&1; then
|
||||
HAVE_IPV6=yes
|
||||
else
|
||||
# test for ipv6, uses streamptcp peculiarity.
|
||||
if ./streamtcp -f ::1 2>&1 | grep "not supported" >/dev/null 2>&1; then
|
||||
HAVE_IPV6=no
|
||||
else
|
||||
HAVE_IPV6=yes
|
||||
fi
|
||||
HAVE_IPV6=yes
|
||||
|
||||
cd testdata;
|
||||
sh ../testcode/mini_tpkg.sh clean
|
||||
|
|
|
|||
Loading…
Reference in a new issue