From 94342e69299591ac0a69abd437a32b776305386e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 9 Apr 2023 12:23:49 -0400 Subject: [PATCH] *async fetch remotePublicKey --- src/peer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peer.ts b/src/peer.ts index a16d4cf..63ea25f 100644 --- a/src/peer.ts +++ b/src/peer.ts @@ -105,7 +105,7 @@ export default class Peer { this._socket = new Socket({ remoteAddress: raw.remoteHost, remotePort: raw.remotePort, - remotePublicKey: self._peer.remotePublicKey, + remotePublicKey: await maybeGetAsyncProperty(self._peer.remotePublicKey), async write(data: any, cb: Function) { if (pipe) { pipe.send(data);