From 591c48a6903bbf324361610f81c628302cae7049 Mon Sep 17 00:00:00 2001 From: jahoti Date: Sat, 4 Sep 2021 00:00:00 +0000 Subject: Make test suite mildly usable Allow test/server.py to be run as a command and add some "webpages" for it. --- test/proxy_core.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/proxy_core.py') diff --git a/test/proxy_core.py b/test/proxy_core.py index da90455..dd4225d 100644 --- a/test/proxy_core.py +++ b/test/proxy_core.py @@ -5,7 +5,7 @@ """ The core for a "virtual network" proxy -Be sure to run this inside your intended certificates directory. +Be sure to set certdir to your intended certificates directory before running. """ import os, socket, ssl, subprocess, sys, threading, time @@ -20,8 +20,6 @@ def popen(command, *args, **kwargs): class ProxyRequestHandler(BaseHTTPRequestHandler): """Handles a network request made to the proxy""" - certdir = '' - def log_error(self, format, *args): # suppress "Request timed out: timeout('timed out',)" if isinstance(args[0], socket.timeout): -- cgit v1.2.3