Set reverse DNS names in lower case

This commit is contained in:
Grégory Soutadé 2014-12-16 07:38:57 +01:00
parent ba5bd75ac1
commit 28d3e9765f

View File

@ -49,7 +49,7 @@ class IWLAPostAnalysisReverseDNS(IPlugin):
if hit.get('dns_analysed', False): continue
try:
name, _, _ = socket.gethostbyaddr(k)
hit['remote_addr'] = name
hit['remote_addr'] = name.lower()
hit['dns_name_replaced'] = True
except:
pass