This commit is contained in:
AJ ONeal 2018-06-22 23:52:47 -06:00
parent 6f88490abe
commit 0a14bbd84c
2 changed files with 6 additions and 1 deletions

View File

@ -250,7 +250,7 @@ module.exports.assign = function (state, tun, cb) {
// 1. No modification handlerpath may be an aboslute path
// 2. it may be relative to a user home directory
// 3. it may be relative to a user local/share
// 3. it may be relative to a user ~/local/share
tlsSocket._tun = tun;
tlsSocket._id = id;
@ -260,6 +260,7 @@ module.exports.assign = function (state, tun, cb) {
}
if (/^~/.test(handlerpath)) {
// TODO have the telebit remote tell which user is running
handlerpath = path.join(homedir, handlerpath.replace(/^~(\/?)/, ''));
}

View File

@ -15,4 +15,8 @@ urequest(req, function (err, resp, body) {
}
console.log('Done:');
console.log(body);
/*
body.status = 'ready' | 'pending' | 'complete' | 'invalid'
body.access_token // only in 'ready' state
*/
});