CI Try again!

This commit is contained in:
mengskysama 2016-01-12 01:55:42 +08:00
parent efad757837
commit 288c11c9d9
2 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ run_test python tests/test.py --with-coverage -b "-m aes-256-cfb -k testrc4 -s 1
run_test python tests/test.py --with-coverage --should-fail --url="http://127.0.0.1/" -b "-m aes-256-cfb -k testrc4 -s 127.0.0.1 -p 8388 --forbidden-ip=127.0.0.1,::1,8.8.8.8" -a "-m aes-256-cfb -k testrc4 -s 127.0.0.1 -p 8388 -l 1081 -t 30 -b 127.0.0.1"
# test if DNS works
run_test python tests/test.py --with-coverage -c tests/aes.json --url="https://www.google.com/"
run_test python tests/test.py --with-coverage -c tests/aes.json --url="https://clients1.google.com/generate_204"
# test localhost is in the forbidden list by default
run_test python tests/test.py --with-coverage --should-fail --tcp-only --url="http://127.0.0.1/" -b "-m aes-256-cfb -k testrc4 -s 127.0.0.1 -p 8388" -a "-m aes-256-cfb -k testrc4 -s 127.0.0.1 -p 8388 -l 1081 -t 30 -b 127.0.0.1"

View File

@ -48,13 +48,13 @@ if __name__ == '__main__':
sock_in2 = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM,
socket.SOL_UDP)
sock_in1.bind(('::1', 9001))
sock_in2.bind(('::1', 9002))
sock_in1.bind(('::1', 9005))
sock_in2.bind(('::1', 9006))
sock_out.sendto(b'data', ('::1', 9001))
sock_out.sendto(b'data', ('::1', 9005))
result1 = sock_in1.recvfrom(8)
sock_out.sendto(b'data', ('::1', 9002))
sock_out.sendto(b'data', ('::1', 9006))
result2 = sock_in2.recvfrom(8)
sock_out.close()