import os sys.path.insert(0, os.path.abspath("..")) import asyncio from twunnel3 import local_proxy_server, logger from examples import example configuration = \ { "LOGGER": { "LEVEL": 3 } } logger.configure(configuration) loop = asyncio.get_event_loop() configuration = \ { "PROXY_SERVERS": [], "LOCAL_PROXY_SERVER": { "TYPE": "HTTPS", "ADDRESS": "127.0.0.1", "PORT": 8080 } } https_server = loop.run_until_complete(local_proxy_server.create_server(configuration))
import os sys.path.insert(0, os.path.abspath("..")) import asyncio from twunnel3 import local_proxy_server, logger, remote_proxy_server from examples import example configuration = \ { "LOGGER": { "LEVEL": 3 } } logger.configure(configuration) loop = asyncio.get_event_loop() configuration = \ { "PROXY_SERVERS": [], "REMOTE_PROXY_SERVER": { "TYPE": "SSL", "ADDRESS": "127.0.0.1", "PORT": 8443, "CERTIFICATE": { "FILE": "files/SSL/C.pem", "KEY":