Handshake should be using the endpoint store, not the config store
This commit is contained in:
parent
f9623a616c
commit
b9c0e6b29f
|
@ -115,7 +115,7 @@ internal class ClientHandshake<CONNECTION: Connection>(private val config: Confi
|
|||
|
||||
// called from the connect thread
|
||||
suspend fun handshakeHello(handshakeConnection: MediaDriverConnection, connectionTimeoutMS: Long) : ClientConnectionInfo {
|
||||
val registrationMessage = HandshakeMessage.helloFromClient(oneTimePad, config.settingsStore.getPublicKey()!!)
|
||||
val registrationMessage = HandshakeMessage.helloFromClient(oneTimePad, endPoint.settingsStore.getPublicKey()!!)
|
||||
|
||||
// Send the one-time pad to the server.
|
||||
endPoint.writeHandshakeMessage(handshakeConnection.publication, registrationMessage)
|
||||
|
|
Loading…
Reference in New Issue
Block a user