add ssh+https

This commit is contained in:
AJ ONeal 2018-06-01 09:10:41 +00:00
parent 846590e648
commit ebe4003d27
1 changed files with 4 additions and 2 deletions

View File

@ -251,13 +251,15 @@ module.exports.create = function (state) {
token.dynamicPorts.push(serviceport);
Devices.add(state.deviceLists, serviceport, token);
var hri = require('human-readable-ids').hri;
var hrname = hri.random();
sendTunnelMsg(
null
, [ 2
, 'grant'
, [ ['tcp', 'tcp.telebit.cloud', serviceport]
, [ ['ssh+https', hrname + '.telebit.cloud', 443 ]
, ['ssh', 'ssh.telebit.cloud', serviceport ]
, ['https', hri.random() + '.telebit.cloud' ]
, ['tcp', 'tcp.telebit.cloud', serviceport]
, ['https', hrname + '.telebit.cloud' ]
]
]
, 'control'