Commit d18929f9 authored by ibuler's avatar ibuler

[Bugfix] 修改bug

parent a24d98e0
...@@ -176,12 +176,13 @@ class ProxyServer(object): ...@@ -176,12 +176,13 @@ class ProxyServer(object):
def proxy(self): def proxy(self):
self.backend_channel = backend_channel = self.connect() self.backend_channel = backend_channel = self.connect()
client_channel = self.client_channel client_channel = self.client_channel
self.app.proxy_list[self.proxy_log_id] = \
[self.client_channel, backend_channel]
if backend_channel is None: if backend_channel is None:
return return
self.app.proxy_list[self.proxy_log_id] = \
[self.client_channel, backend_channel]
while not self.stop_event.set(): while not self.stop_event.set():
r, w, x = select.select([client_channel, backend_channel], [], []) r, w, x = select.select([client_channel, backend_channel], [], [])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment