2
2
镜像自地址 https://git.coolaj86.com/coolaj86/telebit.js.git 已同步 2025-07-03 18:16:30 +00:00

v0.20.6: bugfix: falsey ssh value means 'off', not 'default'

这个提交包含在:
AJ ONeal 2018-09-25 01:39:05 -06:00
父节点 0a8fabef7a
当前提交 41d8674519
共有 2 个文件被更改,包括 6 次插入2 次删除

查看文件

@ -289,12 +289,16 @@ controllers.ssh = function (req, res, opts) {
function sshSuccess() {
//state.config.sshAuto = state.sshAuto;
saveConfig(function (err) {
var local = state.config.sshAuto;
if (false !== local && !local) {
local = 22;
}
res.setHeader('Content-Type', 'application/json');
res.end(JSON.stringify({
success: true
, active: true
, remote: Object.keys(state.config.ports)[0]
, local: state.config.sshAuto || 22
, local: local
, saved: !err
, module: 'ssh'
}));

查看文件

@ -1,6 +1,6 @@
{
"name": "telebit",
"version": "0.20.5",
"version": "0.20.6",
"description": "Break out of localhost. Connect to any device from anywhere over any tcp port or securely in a browser. A secure tunnel. A poor man's reverse VPN.",
"main": "lib/remote.js",
"files": [