diff --git a/dist/peer.js b/dist/peer.js index 09b76b8..ccadee0 100644 --- a/dist/peer.js +++ b/dist/peer.js @@ -43,7 +43,7 @@ class Peer { this._socket = new socket_js_1.default({ remoteAddress: raw.remoteHost, remotePort: raw.remotePort, - remotePublicKey: self._peer.remotePublicKey, + remotePublicKey: await maybeGetAsyncProperty(self._peer.remotePublicKey), async write(data, cb) { if (pipe) { pipe.send(data);