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

Commit e9791fd

Browse files
committed
Fix not blocking for ecm tunnels without killfile
1 parent 13b1696 commit e9791fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tunnel_start.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ module.exports = {
309309
if (err){
310310
return cb(err)
311311
} else {
312+
var i = setInterval(()=>{}, 10000);
312313
process.on('SIGINT',function(){
313314
// kill tunnel
314315
api.deleteTunnel(tunnelObject.tunnel_id, (err) => {
@@ -424,7 +425,8 @@ function createConmanParams(params){
424425
// apply other_options to our options object
425426
return _.reduce(params, (opts, value, optionName) => {
426427
if(forwardedParams[optionName]){
427-
opts[optionName] = value === 'true' ? true :
428+
var newkey = forwardedParams[optionName];
429+
opts[newkey] = value === 'true' ? true :
428430
value === 'false' ? false
429431
: value;
430432
};

0 commit comments

Comments
 (0)