#!/bin/sh

. ./test-functions

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