We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b43481b commit 62d7c6cCopy full SHA for 62d7c6c
src/tests/test_protocol.py
@@ -31,6 +31,14 @@ def test_check_local(self):
31
protocol.checkIPAddress(protocol.encodeHost('127.0.0.1'), True))
32
self.assertTrue(
33
protocol.checkIPAddress(protocol.encodeHost('192.168.0.1'), True))
34
+ self.assertTrue(
35
+ protocol.checkIPAddress(protocol.encodeHost('10.42.43.1'), True))
36
37
+ protocol.checkIPAddress(protocol.encodeHost('172.31.255.2'), True))
38
+
39
+ globalhost = protocol.encodeHost('8.8.8.8')
40
+ self.assertFalse(protocol.checkIPAddress(globalhost, True))
41
+ self.assertEqual(protocol.checkIPAddress(globalhost), '8.8.8.8')
42
43
44
not protocol.checkSocksIP('127.0.0.1')
0 commit comments