*fist param is peer, second socket

This commit is contained in:
Derrick Hammer 2023-04-09 12:41:48 -04:00
parent 37cbac3435
commit b0ae2a2a3e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ export default class HandshakeProxy extends Proxy {
listen,
autostart: true,
protocol: PROTOCOL,
async onopen(socket: Socket) {
async onopen(inboundPeer, socket: Socket) {
const peer = HNSPeer.fromInbound(self._node.pool.options, socket);
peer.connected = false;
peer.outbound = true;