From a4ff90cd0a1e0ed90d343b7fd09c39d06dc9e06b Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Sun, 3 Apr 2005 12:08:57 +0000 Subject: [PATCH] =?UTF-8?q?-=20Fixed=20textToDNS=20method=20which=20did=20?= =?UTF-8?q?not=20recognize=20"12-344-54-33.adsl.xyz.ab".=20Thanks=20to=20K?= =?UTF-8?q?=EF=BF=BDvin=20Drapel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@101 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- utils/dns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/dns.py b/utils/dns.py index 70007714..9c8e47a7 100644 --- a/utils/dns.py +++ b/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: