Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Fix not blocking for ecm tunnels without killfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jreese802 committed Feb 28, 2018
1 parent 13b1696 commit e9791fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tunnel_start.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ module.exports = {
if (err){
return cb(err)
} else {
var i = setInterval(()=>{}, 10000);
process.on('SIGINT',function(){
// kill tunnel
api.deleteTunnel(tunnelObject.tunnel_id, (err) => {
Expand Down Expand Up @@ -424,7 +425,8 @@ function createConmanParams(params){
// apply other_options to our options object
return _.reduce(params, (opts, value, optionName) => {
if(forwardedParams[optionName]){
opts[optionName] = value === 'true' ? true :
var newkey = forwardedParams[optionName];
opts[newkey] = value === 'true' ? true :
value === 'false' ? false
: value;
};
Expand Down

0 comments on commit e9791fd

Please sign in to comment.