Skip to content

Commit

Permalink
Proxy server for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Jul 26, 2024
1 parent 0e6b0e8 commit b1510d0
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions test/server/proxyServer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Simple proxy server for testing IGV

// Proxy server from https://github.com/kasattejaswi/nodejs-proxy-server
// Copyright (c) 2021 Tejaswi Kasat

Expand Down Expand Up @@ -31,8 +33,8 @@ server.on("connection", (clientToProxySocket) => {

// Require a password
//if(dataString.indexOf("Proxy-Authorization") < 0) {
// clientToProxySocket.write("HTTP/1.1 407 Proxy requires authentication\r\n\r\n")
// return;
// clientToProxySocket.write("HTTP/1.1 407 Proxy requires authentication\r\n\r\n")
// return;
//}

// Creating a connection from proxy to destination server
Expand Down Expand Up @@ -69,12 +71,4 @@ server.on("close", () => {
console.log("Client disconnected")
})

server.listen(
{
host: "0.0.0.0",
port: 9999,
},
() => {
console.log("Server listening on 0.0.0.0:9999")
}
)
server.listen(9999)

0 comments on commit b1510d0

Please sign in to comment.