Fix initiator flag during secio upgrade

This commit is contained in:
Alex Stokes 2019-09-09 16:40:14 -04:00
parent f9321924ad
commit 155bec0562
No known key found for this signature in database
GPG Key ID: 51CE1721B245C086

View File

@ -409,7 +409,7 @@ async def create_secure_session(
await conn.close()
raise e
initiator = remote_peer is None
initiator = remote_peer is not None
session = _mk_session_from(local_private_key, session_parameters, msg_io, initiator)
received_nonce = await _finish_handshake(session, remote_nonce)