def start_cachebrowser_server(context): logger.debug("Initializing IPC") ipc = IPCManager(context) config = mitmproxy.proxy.ProxyConfig(port=context.settings.port) server = ProxyServer(config) m = ProxyController(server, ipc) logger.debug("Adding 'Resolver' pipe") m.add_pipe(ResolverPipe(context)) logger.debug("Adding 'SNI' pipe") m.add_pipe(SNIPipe(context)) logger.debug("Adding 'Publisher' pipe") m.add_pipe(PublisherPipe(context)) try: logger.info("Listening for proxy connections on port {}".format(context.settings.port)) return m.run() except KeyboardInterrupt: m.shutdown()
def start_cachebrowser_server(context): logger.debug("Initializing IPC") ipc = IPCManager(context) ipc.register_rpc_handlers(api_routes) context.ipc = ipc config = ProxyConfig(context) server = ProxyServer(config) m = ProxyController(server, ipc) # logger.debug("Adding WebsiteFilter Pipe") # m.add_pipe(WebsiteFilterPipe(context)) logger.debug("Adding 'Resolver' pipe") m.add_pipe(ResolverPipe(context)) logger.debug("Adding Scrambler Pipe") m.add_pipe(ScramblerPipe(context)) logger.debug("Adding 'SNI' pipe") m.add_pipe(SNIPipe(context)) logger.debug("Adding 'Publisher' pipe") m.add_pipe(PublisherPipe(context)) try: logger.info("Listening for proxy connections on port {}".format( context.settings.port)) return m.run() except KeyboardInterrupt: m.shutdown()
def start_cachebrowser_server(context): logger.debug("Initializing IPC") ipc = IPCManager(context) ipc.register_rpc_handlers(api_routes) context.ipc = ipc config = ProxyConfig(context) server = ProxyServer(config) m = ProxyController(server, ipc) # logger.debug("Adding WebsiteFilter Pipe") # m.add_pipe(WebsiteFilterPipe(context)) logger.debug("Adding 'Resolver' pipe") m.add_pipe(ResolverPipe(context)) logger.debug("Adding Scrambler Pipe") m.add_pipe(ScramblerPipe(context)) logger.debug("Adding 'SNI' pipe") m.add_pipe(SNIPipe(context)) logger.debug("Adding 'Publisher' pipe") m.add_pipe(PublisherPipe(context)) try: logger.info("Listening for proxy connections on port {}".format(context.settings.port)) return m.run() except KeyboardInterrupt: m.shutdown()
def start_cachebrowser_server(context): logger.debug("Initializing IPC") ipc = IPCManager(context) config = mitmproxy.proxy.ProxyConfig(port=context.settings.port) server = ProxyServer(config) m = ProxyController(server, ipc) logger.debug("Adding 'Resolver' pipe") m.add_pipe(ResolverPipe(context)) logger.debug("Adding 'SNI' pipe") m.add_pipe(SNIPipe(context)) logger.debug("Adding 'Publisher' pipe") m.add_pipe(PublisherPipe(context)) try: logger.info("Listening for proxy connections on port {}".format( context.settings.port)) return m.run() except KeyboardInterrupt: m.shutdown()