*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,
|
listen,
|
||||||
autostart: true,
|
autostart: true,
|
||||||
protocol: PROTOCOL,
|
protocol: PROTOCOL,
|
||||||
async onopen(socket: Socket) {
|
async onopen(inboundPeer, socket: Socket) {
|
||||||
const peer = HNSPeer.fromInbound(self._node.pool.options, socket);
|
const peer = HNSPeer.fromInbound(self._node.pool.options, socket);
|
||||||
peer.connected = false;
|
peer.connected = false;
|
||||||
peer.outbound = true;
|
peer.outbound = true;
|
||||||
|
|
Loading…
Reference in New Issue