*async fetch remotePublicKey

This commit is contained in:
Derrick Hammer 2023-04-09 12:23:49 -04:00
parent 6099a6c4f6
commit 94342e6929
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ export default class Peer {
this._socket = new Socket({ this._socket = new Socket({
remoteAddress: raw.remoteHost, remoteAddress: raw.remoteHost,
remotePort: raw.remotePort, remotePort: raw.remotePort,
remotePublicKey: self._peer.remotePublicKey, remotePublicKey: await maybeGetAsyncProperty(self._peer.remotePublicKey),
async write(data: any, cb: Function) { async write(data: any, cb: Function) {
if (pipe) { if (pipe) {
pipe.send(data); pipe.send(data);