X-Git-Url: https://code.delx.au/proxy/blobdiff_plain/136ebff73a88982e1575526718ea2309f2f25f29..3f1f4f365817097fb3c43608f92f8cc1aa3ea3f5:/test_proxy.py diff --git a/test_proxy.py b/test_proxy.py index 5f0a70f..b9d4f81 100755 --- a/test_proxy.py +++ b/test_proxy.py @@ -151,6 +151,10 @@ class TestRequestNegotiation(SocketHelper, unittest.TestCase): self.send(b"\x05\x01\x00\x03\x09localhost" + ECHO_PORT_B) self.assertRequestSuccess() + def test_dns_remote_success(self): + self.send(b"\x05\x01\x00\x03\x0bexample.com\x00P") + self.assertRequestSuccess() + def test_dns_bad_port(self): self.send(b"\x05\x01\x00\x03\x09localhost\xff\xff") self.assertRequestFail(4)