Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lanmower authored Apr 29, 2024
1 parent d21506a commit 71df4c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ const relay = async () => {
const socket = node.connect(publicKey, { reusableSocket: true });
pump(local, socket, local);
});
server.listen(port, "127.0.0.1");
const socket = node.connect(publicKey, { reusableSocket: true });
socket.on('open', (d)=>{socket.write('test')})
socket.on('data', (d)=>{socket.end();
server.listen(port, "127.0.0.1")});

console.log('listening for local connections on tcp', port);
}
},
Expand Down

0 comments on commit 71df4c1

Please sign in to comment.