- 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 2005-04-03 12:08:57 +00:00
parent 77dc3e4261
commit a4ff90cd0a
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ def dnsToIp(dns):
def textToDns(text): def textToDns(text):
""" Search for possible DNS in an arbitrary 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: if match:
return match return match
else: else: