Do reverse DNS on feeds parsers
This commit is contained in:
@@ -64,9 +64,12 @@ class IWLAPostAnalysisReverseDNS(IPlugin):
|
||||
return True
|
||||
|
||||
def hook(self):
|
||||
hits = self.iwla.getValidVisitors()
|
||||
hits = self.iwla.getCurrentVisists()
|
||||
for (k, hit) in hits.items():
|
||||
if hit.get('dns_analysed', False): continue
|
||||
if not hit['feed_parser'] and\
|
||||
not self.iwla.isValidVisitor(hit):
|
||||
continue
|
||||
try:
|
||||
name, _, _ = socket.gethostbyaddr(k)
|
||||
hit['remote_addr'] = name.lower()
|
||||
|
Reference in New Issue
Block a user