*fist param is peer, second socket
This commit is contained in:
parent
37cbac3435
commit
b0ae2a2a3e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue