Adjust callsite
This commit is contained in:
parent
1adef05e94
commit
376a5d4fc6
|
@ -76,7 +76,7 @@ class InsecureTransport(BaseSecureTransport):
|
||||||
for an inbound connection (i.e. we are not the initiator)
|
for an inbound connection (i.e. we are not the initiator)
|
||||||
:return: secure connection object (that implements secure_conn_interface)
|
:return: secure connection object (that implements secure_conn_interface)
|
||||||
"""
|
"""
|
||||||
session = InsecureSession(self, conn, ID(b""))
|
session = InsecureSession(self.local_peer, self.local_private_key, conn)
|
||||||
await session.run_handshake()
|
await session.run_handshake()
|
||||||
return session
|
return session
|
||||||
|
|
||||||
|
@ -86,7 +86,9 @@ class InsecureTransport(BaseSecureTransport):
|
||||||
for an inbound connection (i.e. we are the initiator)
|
for an inbound connection (i.e. we are the initiator)
|
||||||
:return: secure connection object (that implements secure_conn_interface)
|
:return: secure connection object (that implements secure_conn_interface)
|
||||||
"""
|
"""
|
||||||
session = InsecureSession(self, conn, peer_id)
|
session = InsecureSession(
|
||||||
|
self.local_peer, self.local_private_key, conn, peer_id
|
||||||
|
)
|
||||||
await session.run_handshake()
|
await session.run_handshake()
|
||||||
return session
|
return session
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user