def __init__( self, parent: "ReverseProxyHandler", *, hostname: str = None, address: str = "127.0.0.1", port: int = 0, ) -> None: """ Hostname must be set in order to resolve subdomains """ self.parent = parent self.hostname = "localhost" if hostname is None else hostname self.address = address self.port = port self.upstream = {} self.logger = LOGGER.getChild(self.__class__.__qualname__)
def __init__(self, config: BaseConfig) -> None: self.config = config self.logger = LOGGER.getChild(self.__class__.__qualname__)