Update conf management
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
import socket
|
||||
|
||||
from iwla import IWLA
|
||||
from iplugin import IPlugin
|
||||
|
||||
class IWLAPostAnalysisReverseDNS(IPlugin):
|
||||
def __init__(self, iwla):
|
||||
super(IWLAPostAnalysisReverseDNS, self).__init__(iwla)
|
||||
def __init__(self, iwla, conf):
|
||||
super(IWLAPostAnalysisReverseDNS, self).__init__(iwla, conf)
|
||||
self.API_VERSION = 1
|
||||
|
||||
def load(self):
|
||||
timeout = self.getConfValue('reverse_dns_timeout', 0.5)
|
||||
socket.setdefaulttimeout(timeout)
|
||||
return True
|
||||
|
||||
def hook(self, iwla):
|
||||
hits = iwla.getValidVisitors()
|
||||
for (k, hit) in hits.items():
|
||||
|
@@ -2,8 +2,8 @@ from iwla import IWLA
|
||||
from iplugin import IPlugin
|
||||
|
||||
class IWLAPostAnalysisTopVisitors(IPlugin):
|
||||
def __init__(self, iwla):
|
||||
super(IWLAPostAnalysisTopVisitors, self).__init__(iwla)
|
||||
def __init__(self, iwla, conf):
|
||||
super(IWLAPostAnalysisTopVisitors, self).__init__(iwla, conf)
|
||||
self.API_VERSION = 1
|
||||
|
||||
def hook(self, iwla):
|
||||
|
Reference in New Issue
Block a user