Spaces:
Running
Running
Commit
·
ee7ff2d
1
Parent(s):
3bb34cc
removed excessive debugging messages.
Browse files- myNodeServer.js +1 -5
myNodeServer.js
CHANGED
@@ -11,7 +11,7 @@ let ALREADY_STARTING = false;
|
|
11 |
let IFRAME = false;
|
12 |
const OMNITOOL_STATUS_CHECK_INTERVAL = 2000; // 2 seconds
|
13 |
|
14 |
-
const VERSION = '0.0.
|
15 |
console.log(`************ Omnitool Proxy Server v${VERSION} ************`);
|
16 |
let omnitoolLogs = [];
|
17 |
|
@@ -188,8 +188,6 @@ async function periodicCheckOmnitoolStatus() {
|
|
188 |
async function checkOmnitoolStatus()
|
189 |
{
|
190 |
|
191 |
-
console.log(`BEFORE: Checking Omnitool status: PRE_READY = ${OMNITOOL_PRE_READY}, READY = ${OMNITOOL_READY}, IFRAME = ${IFRAME}, ALREADY_STARTING = ${ALREADY_STARTING}`);
|
192 |
-
|
193 |
return new Promise((resolve, reject) =>
|
194 |
{
|
195 |
const options = {
|
@@ -235,7 +233,6 @@ async function startRequestForwardingServer(proxy_port)
|
|
235 |
const server = http.createServer(async (req, res) =>
|
236 |
{
|
237 |
|
238 |
-
console.log("------------------");
|
239 |
const localUrl = req.headers['host'];
|
240 |
const hostname = localUrl.split(':')[0];
|
241 |
const newUrl = `${PROTOCOL}://${hostname}:${PROXY_PORT_OMNITOOL}`;
|
@@ -243,7 +240,6 @@ async function startRequestForwardingServer(proxy_port)
|
|
243 |
if (!OMNITOOL_READY || IFRAME)
|
244 |
{
|
245 |
// Handle GET requests here
|
246 |
-
console.log(`Omnitool Server:OMNITOOL_READY = ${OMNITOOL_READY}`);
|
247 |
if (req.method === 'GET')
|
248 |
{
|
249 |
switch (req.url)
|
|
|
11 |
let IFRAME = false;
|
12 |
const OMNITOOL_STATUS_CHECK_INTERVAL = 2000; // 2 seconds
|
13 |
|
14 |
+
const VERSION = '0.0.7b';
|
15 |
console.log(`************ Omnitool Proxy Server v${VERSION} ************`);
|
16 |
let omnitoolLogs = [];
|
17 |
|
|
|
188 |
async function checkOmnitoolStatus()
|
189 |
{
|
190 |
|
|
|
|
|
191 |
return new Promise((resolve, reject) =>
|
192 |
{
|
193 |
const options = {
|
|
|
233 |
const server = http.createServer(async (req, res) =>
|
234 |
{
|
235 |
|
|
|
236 |
const localUrl = req.headers['host'];
|
237 |
const hostname = localUrl.split(':')[0];
|
238 |
const newUrl = `${PROTOCOL}://${hostname}:${PROXY_PORT_OMNITOOL}`;
|
|
|
240 |
if (!OMNITOOL_READY || IFRAME)
|
241 |
{
|
242 |
// Handle GET requests here
|
|
|
243 |
if (req.method === 'GET')
|
244 |
{
|
245 |
switch (req.url)
|