Skip to content

Commit

Permalink
WSTUN v 1.0.11: to support logging in read-only mode systems
Browse files Browse the repository at this point in the history
  • Loading branch information
npeditto committed May 27, 2019
1 parent 1833f06 commit f0aa5de
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions bin/wstun.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,17 @@


log4js = require('log4js');
log4js.loadAppender('file');
logfile = '/var/log/wstun/wstun.log';
loglevel = 'debug';
log4js.addAppender(log4js.appenders.file(logfile));

try{
log4js.loadAppender('file');
logfile = '/var/log/wstun/wstun.log';
loglevel = 'debug';
log4js.addAppender(log4js.appenders.file(logfile));
}
catch (err) {
console.log("error log folder creation")
}

var logger = log4js.getLogger('main');
logger.setLevel(loglevel);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mdslab/wstun",
"version": "1.0.10",
"version": "1.0.11",
"description": "A set of tools to establish TCP tunnels (or TCP reverse tunnels) over WebSocket connections for circumventing the problem of directly connect to hosts behind a strict firewall or without public IP. It also supports WebSocket Secure (wss) connections.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit f0aa5de

Please sign in to comment.