Compare commits
2 Commits
37cbac3435
...
17455db38d
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 17455db38d | |
Derrick Hammer | b0ae2a2a3e |
|
@ -19,7 +19,7 @@ class HandshakeProxy extends libhyperproxy_1.Proxy {
|
||||||
listen,
|
listen,
|
||||||
autostart: true,
|
autostart: true,
|
||||||
protocol: PROTOCOL,
|
protocol: PROTOCOL,
|
||||||
async onopen(socket) {
|
async onopen(inboundPeer, socket) {
|
||||||
const peer = net_1.Peer.fromInbound(self._node.pool.options, socket);
|
const peer = net_1.Peer.fromInbound(self._node.pool.options, socket);
|
||||||
peer.connected = false;
|
peer.connected = false;
|
||||||
peer.outbound = true;
|
peer.outbound = true;
|
||||||
|
|
|
@ -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