Browse Source

- Fixed textToDNS method which did not recognize "12-344-54-33.adsl.xyz.ab". Thanks to K�vin Drapel

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@101 a942ae1a-1317-0410-a47c-b1dcaea8d605
0.6
Cyril Jaquier 20 years ago
parent
commit
a4ff90cd0a
  1. 2
      utils/dns.py

2
utils/dns.py

@ -38,7 +38,7 @@ def dnsToIp(dns):
def textToDns(text):
""" Search for possible DNS in an arbitrary text.
"""
match = re.findall("\w*\.\w*\.\w*", text)
match = re.findall("\S*\.\w*\.\w*", text)
if match:
return match
else:

Loading…
Cancel
Save