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')
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')
def __init__(self, filename): self.parser = ConfigParser() self.parser.read(filename) self.filename = filename self.logger = logger.get_logger('insider.RedirectConfig')
def __init__(self, filename): self.filename = filename self.logger = logger.get_logger('insider.DomainConfig')
def __init__(self, local_ip): self.local_ip = local_ip self.logger = logger.get_logger('Upnpc')
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()
def __init__(self): self.logger = logger.get_logger('mock.Upnpc') self.logger.info('initializing mock') self.mappings = dict()