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

Commit 1bfe08c

Browse files
author
warner
committed
add directory to post
1 parent d9b66b4 commit 1bfe08c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

api.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,12 @@ module.exports = function(username, authkey, env){
9191
return callback(err, body);
9292
})
9393
},
94-
postTunnel: function(tunnelType, tunnelName, bypass, secret, acceptAllCerts, electron, callback){
94+
postTunnel: function(tunnelType, tunnelName, bypass, secret, acceptAllCerts, electron, directory, callback){
9595
makeApiCall(server, 'POST', 'tunnels', {
9696
tunnel_source: electron ? 'electron-app' : 'nodews',
9797
tunnel_type: tunnelType,
9898
tunnel_name: tunnelName,
99+
local_directory: directory,
99100
direct_resolution: bypass,
100101
secret: secret,
101102
accept_all_certs: acceptAllCerts | 0,

tunnel_start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ var startConManTunnelViaApi = function(api, params, cb){
131131
}
132132

133133
var startTunnel = function(api, params, cb){
134-
api.postTunnel(params.tType, params.tunnelName, params.bypass, params.secret, params.acceptAllCerts, params.electron, function(err, postResult){
134+
api.postTunnel(params.tType, params.tunnelName, params.bypass, params.secret, params.acceptAllCerts, params.electron, params.directory, function(err, postResult){
135135
if( err || !postResult){
136136
err = err || new Error("Post to CBT failed. Returned falsy value: " + postResult);
137137
return cb(err);

0 commit comments

Comments
 (0)