From b9c0e6b29fe54f15b0a62853fa53198658979d99 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 16 Sep 2020 15:52:14 +0200 Subject: [PATCH] Handshake should be using the endpoint store, not the config store --- src/dorkbox/network/handshake/ClientHandshake.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dorkbox/network/handshake/ClientHandshake.kt b/src/dorkbox/network/handshake/ClientHandshake.kt index 9a4c0fc8..d4d37caa 100644 --- a/src/dorkbox/network/handshake/ClientHandshake.kt +++ b/src/dorkbox/network/handshake/ClientHandshake.kt @@ -115,7 +115,7 @@ internal class ClientHandshake(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)