尝试使用Python 2.7在我的服务器上从github运行代理代码: https://github.com/yeukhon/proxpy
代码运行正常,但是当尝试建立实际连接时,会发生以下错误:
Exception happened during processing of request from ('89.xx.yy.zz', 42618)
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 596, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/root/proxpy/proxpy/core.py", line 56, in __init__
SocketServer.StreamRequestHandler.__init__(self, request, client_address, server)
File "/usr/lib/python2.7/SocketServer.py", line 652, in __init__
self.handle()
File "/root/proxpy/proxpy/core.py", line 131, in handle
res = self.doGET(host, port, req)
File "/root/proxpy/proxpy/core.py", line 168, in doGET
res = ProxyPlugin.delegate(ProxyPlugin.EVENT_MANGLE_RESPONSE, res.clone())
AttributeError: 'NoneType' object has no attribute 'clone'
谢谢