mirror of https://github.com/fail2ban/fail2ban
- 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-b1dcaea8d6050.6
parent
77dc3e4261
commit
a4ff90cd0a
|
@ -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…
Reference in New Issue