|
|
@ -216,6 +216,8 @@ class SocksWebSocketTestRequestHandler(SocksTestRequestHandler):
|
|
|
|
protocol = websockets.ServerProtocol()
|
|
|
|
protocol = websockets.ServerProtocol()
|
|
|
|
connection = websockets.sync.server.ServerConnection(socket=self.request, protocol=protocol, close_timeout=0)
|
|
|
|
connection = websockets.sync.server.ServerConnection(socket=self.request, protocol=protocol, close_timeout=0)
|
|
|
|
connection.handshake()
|
|
|
|
connection.handshake()
|
|
|
|
|
|
|
|
for message in connection:
|
|
|
|
|
|
|
|
if message == 'socks_info':
|
|
|
|
connection.send(json.dumps(self.socks_info))
|
|
|
|
connection.send(json.dumps(self.socks_info))
|
|
|
|
connection.close()
|
|
|
|
connection.close()
|
|
|
|
|
|
|
|
|
|
|
|