Changed default port to 3128
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Fri, 12 Feb 2010 10:58:36 +0000 (10:58 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Fri, 12 Feb 2010 10:58:36 +0000 (10:58 +0000)
sproxy

diff --git a/sproxy b/sproxy
index 489e491bc4754c52ef76c2b740c53330e2cb0ed2..69908340e4d10b64a88d01be5dd4f5df2e85674a 100755 (executable)
--- a/sproxy
+++ b/sproxy
@@ -533,6 +533,7 @@ class ProxyConnectionIn(threading.Thread):
                 logging.info("%s %s %s %s %s", request_in.http_method, request_in.parsed_url.geturl(), request_in.http_version, response.line1[9:12], len(response.data) or '-')
 
             elif request_in.http_method == 'CONNECT':
+                # TODO: tunnel mode
                 request_in.clean_host_request()
                 HttpErrorResponse(200, 'Proceed', '').send_to(self.clientsocket)
 
@@ -637,7 +638,7 @@ if __name__ == '__main__':
         help="listen address, default='%default'")
 
     parser.add_option('-p', '--port',
-        action='store', type='str', dest='listen_port', default='8080',
+        action='store', type='str', dest='listen_port', default='3128',
         metavar='PORT',
         help="listen port, default=%default")