#!/bin/sh

. ./test-functions

echo -n "Loc. TCP/IPv6 sock. untaint. test:	"
( # Sub-shell so as not to taint the test process.
	port=4000
	_wget=$(copy wget)
	
	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
)
