def process_connection(sock, addr, opt): # run this as thread ;) """ Handle new connection (as thread), pass to dispatcher """ try: socks_proxy_dispatcher(sock, addr, options=opt, use_default=True) # socks_proxy_dispatcher(sock, addr, v4_class=routing4, v5_class=routing5, options=opt) except Exception as e: logging.error("Client-error: {0:s}".format( ` e `))
def process_connection(sock, addr, opt): # run this as thread ;) """ Handle new connection (as thread), pass to dispatcher """ try: socks_proxy_dispatcher(sock, addr, options=opt, use_default=True) # socks_proxy_dispatcher(sock, addr, v4_class=routing4, v5_class=routing5, options=opt) except Exception as e: logging.error("Client-error: {0:s}".format(`e`))
def handle(self): srv = socks_proxy_dispatcher(self.request, self.client_address, use_default=True)