First commit
This commit is contained in:
commit
99dcd841ed
19
index.js
Normal file
19
index.js
Normal file
@ -0,0 +1,19 @@
|
||||
var net = require('net');
|
||||
|
||||
async function logAndSend(bytes) {
|
||||
|
||||
}
|
||||
|
||||
var server = net.createServer((socket) => {
|
||||
socket.on('end', (c) => {
|
||||
console.log("Client disconnected");
|
||||
});
|
||||
})
|
||||
|
||||
server.on('connection', () => {
|
||||
console.log("Client connected!");
|
||||
});
|
||||
|
||||
server.listen(8124, () => {
|
||||
console.log("Server bound.");
|
||||
})
|
15
package.json
Normal file
15
package.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "node-http-proxy",
|
||||
"version": "1.0.0",
|
||||
"description": "A proxy built using NodeJS",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"run": "node index.js"
|
||||
},
|
||||
"author": "jaketothepast",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"express": "^4.16.4"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user