Exemple #1
0
 def __init__(self, insider_config, domain_config, service_config, port_mapper, local_ip):
     self.local_ip = local_ip
     self.domain_config = domain_config
     self.service_config = service_config
     self.port_mapper = port_mapper
     self.insider_config = insider_config
     self.logger = logger.get_logger('dns')
Exemple #2
0
 def __init__(self, filename):
     self.parser = ConfigParser()
     self.parser.read(filename)
     self.filename = filename
     self.redirect_config = RedirectConfig(join(dirname(filename), 'redirect.cfg'))
     self.logger = logger.get_logger('insider.InsiderConfig')
Exemple #3
0
 def __init__(self, filename):
     self.parser = ConfigParser()
     self.parser.read(filename)
     self.filename = filename
     self.logger = logger.get_logger('insider.RedirectConfig')
Exemple #4
0
 def __init__(self, filename):
     self.filename = filename
     self.logger = logger.get_logger('insider.DomainConfig')
Exemple #5
0
 def __init__(self, local_ip):
     self.local_ip = local_ip
     self.logger = logger.get_logger('Upnpc')
Exemple #6
0
 def __init__(self, port_config, upnpc):
     self.port_config = port_config
     self.upnpc = upnpc
     self.logger = logger.get_logger('PortMapper')
     self.external_ip_address = self.upnpc.external_ip()
Exemple #7
0
 def __init__(self):
     self.logger = logger.get_logger('mock.Upnpc')
     self.logger.info('initializing mock')
     self.mappings = dict()