Compare commits

...

2 Commits

Author SHA1 Message Date
Derrick Hammer 17455db38d
*Update dist 2023-04-09 12:42:12 -04:00
Derrick Hammer b0ae2a2a3e
*fist param is peer, second socket 2023-04-09 12:41:48 -04:00
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -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;

View File

@ -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;