add ssh+https
This commit is contained in:
parent
846590e648
commit
ebe4003d27
|
@ -251,13 +251,15 @@ module.exports.create = function (state) {
|
||||||
token.dynamicPorts.push(serviceport);
|
token.dynamicPorts.push(serviceport);
|
||||||
Devices.add(state.deviceLists, serviceport, token);
|
Devices.add(state.deviceLists, serviceport, token);
|
||||||
var hri = require('human-readable-ids').hri;
|
var hri = require('human-readable-ids').hri;
|
||||||
|
var hrname = hri.random();
|
||||||
sendTunnelMsg(
|
sendTunnelMsg(
|
||||||
null
|
null
|
||||||
, [ 2
|
, [ 2
|
||||||
, 'grant'
|
, 'grant'
|
||||||
, [ ['tcp', 'tcp.telebit.cloud', serviceport]
|
, [ ['ssh+https', hrname + '.telebit.cloud', 443 ]
|
||||||
, ['ssh', 'ssh.telebit.cloud', serviceport ]
|
, ['ssh', 'ssh.telebit.cloud', serviceport ]
|
||||||
, ['https', hri.random() + '.telebit.cloud' ]
|
, ['tcp', 'tcp.telebit.cloud', serviceport]
|
||||||
|
, ['https', hrname + '.telebit.cloud' ]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
, 'control'
|
, 'control'
|
||||||
|
|
Loading…
Reference in New Issue