mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-07-28 01:05:27 -04:00
Fixed deprecated options in asyncio API for Python 3.10. Fixes #58.
This commit is contained in:
parent
94749e0dde
commit
9e316ab989
3 changed files with 10 additions and 4 deletions
6
RNS/vendor/i2plib/tunnel.py
vendored
6
RNS/vendor/i2plib/tunnel.py
vendored
|
@ -102,7 +102,7 @@ class ClientTunnel(I2PTunnel):
|
|||
self.status["setup_failed"] = True
|
||||
self.status["exception"] = e
|
||||
|
||||
self.server = await asyncio.start_server(handle_client, *self.local_address, loop=self.loop)
|
||||
self.server = await asyncio.start_server(handle_client, *self.local_address)
|
||||
self.status["setup_ran"] = True
|
||||
|
||||
def stop(self):
|
||||
|
@ -136,8 +136,8 @@ class ServerTunnel(I2PTunnel):
|
|||
remote_reader, remote_writer = await asyncio.wait_for(
|
||||
asyncio.open_connection(
|
||||
host=self.local_address[0],
|
||||
port=self.local_address[1], loop=self.loop),
|
||||
timeout=5, loop=self.loop)
|
||||
port=self.local_address[1]),
|
||||
timeout=5)
|
||||
if data: remote_writer.write(data)
|
||||
asyncio.ensure_future(proxy_data(remote_reader, client_writer),
|
||||
loop=self.loop)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue