diff --git a/src/index.ts b/src/index.ts index 0ede723..dd1f350 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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;