#!/bin/sh

. ./test-functions

echo -n "Local TCP socket untainted test:	"
( # Sub-shell so as not to taint the test process.
	port=4000
	_wget=$(copy wget)
	
	nc -l4p $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
)
