#!/bin/sh

. ./test-functions

echo -n "Local TCP/IPv6 socket taints test:	"
_wget=$(copy wget)
( # Sub-shell so as not to taint the test process.
	port=4000
	
	nc -l6p $port | test_evil_bit $_wget --no-check-certificate -i - --quiet -O /dev/null &
	sleep 1
	cat confidential | nc localhost $port
	wait $!
)
rm -f $_wget
