Sinar/censortests — pull request #6 by weldan (2013-05-04 08:13:21+00:00)
Title: error checking on establish socket connection

>>> mydev.my is not exist, www.mydev.my is exist, throw error message than traceback. dont know if necessary. thanks

weldan@prindu:~/censortests$ ./testfilter.py --host webdev.my
## Test 1: Check DNS, and IP block: Testing Same IP, different Virtual Host
[Errno -5] No address associated with hostname
Traceback (most recent call last):
File "./testfilter.py", line 180, in
main()
File "./testfilter.py", line 171, in main
testsingle(target.host, target.path, verbose=target.verbose)
File "./testfilter.py", line 103, in testsingle
run.check_dns_ip_block()
File "./testfilter.py", line 42, in check_dns_ip_block
s.send(path_str)
socket.error: [Errno 32] Broken pipe