mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
Merge branch '0.10' into 0.11
This commit is contained in:
commit
5137cd2ec8
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ def is_googlebot(ip):
|
|||
import re
|
||||
|
||||
host = DNSUtils.ipToName(ip)
|
||||
if not host or not re.match('.*\.google(bot)?\.com$', host):
|
||||
if not host or not re.match(r'.*\.google(bot)?\.com$', host):
|
||||
return False
|
||||
host_ips = DNSUtils.dnsToIp(host)
|
||||
return (ip in host_ips)
|
||||
|
|
|
|||
Loading…
Reference in a new issue