mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-08-17 21:25:50 +02:00
Fixup ipv6 availability test.
git-svn-id: file:///svn/unbound/trunk@1131 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user