mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
testIPAddr_CompareDNS: add missing network constraint (gh-2596)
This commit is contained in:
parent
b25d8565fc
commit
b158f83aa3
1 changed files with 1 additions and 0 deletions
|
|
@ -2064,6 +2064,7 @@ class DNSUtilsNetworkTests(unittest.TestCase):
|
|||
)
|
||||
|
||||
def testIPAddr_CompareDNS(self):
|
||||
unittest.F2B.SkipIfNoNetwork()
|
||||
ips = IPAddr('example.com')
|
||||
self.assertTrue(IPAddr("93.184.216.34").isInNet(ips))
|
||||
self.assertTrue(IPAddr("2606:2800:220:1:248:1893:25c8:1946").isInNet(ips))
|
||||
|
|
|
|||
Loading…
Reference in a new issue