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,
|
||||
autostart: true,
|
||||
protocol: PROTOCOL,
|
||||
async onopen(socket) {
|
||||
async onopen(inboundPeer, socket) {
|
||||
const peer = net_1.Peer.fromInbound(self._node.pool.options, socket);
|
||||
peer.connected = false;
|
||||
peer.outbound = true;
|
||||
|
|
|
@ -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