]> code.delx.au - proxy/blobdiff - test_proxy.py
Extra DNS test
[proxy] / test_proxy.py
index 5f0a70f89211166e31ec2af75229eef5fa5e56e9..b9d4f81096a8c33ae9cf79abae3a3b7f1cd507c2 100755 (executable)
@@ -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)