Compare commits

..

2 Commits

Author SHA1 Message Date
Derrick Hammer 22023baedc
*update dist 2023-04-09 12:24:05 -04:00
Derrick Hammer 94342e6929
*async fetch remotePublicKey 2023-04-09 12:23:49 -04:00
2 changed files with 2 additions and 2 deletions

2
dist/peer.js vendored
View File

@ -43,7 +43,7 @@ class Peer {
this._socket = new socket_js_1.default({ this._socket = new socket_js_1.default({
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, cb) { async write(data, cb) {
if (pipe) { if (pipe) {
pipe.send(data); pipe.send(data);

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);