Compare commits
No commits in common. "20ed109aebd10e038a0a9d6ea4018af0d88d6957" and "ebd4f530f20208bd7cb575e473f81e3d9545a8b5" have entirely different histories.
20ed109aeb
...
ebd4f530f2
@ -289,16 +289,12 @@ controllers.ssh = function (req, res, opts) {
|
|||||||
function sshSuccess() {
|
function sshSuccess() {
|
||||||
//state.config.sshAuto = state.sshAuto;
|
//state.config.sshAuto = state.sshAuto;
|
||||||
saveConfig(function (err) {
|
saveConfig(function (err) {
|
||||||
var local = state.config.sshAuto;
|
|
||||||
if (false !== local && !local) {
|
|
||||||
local = 22;
|
|
||||||
}
|
|
||||||
res.setHeader('Content-Type', 'application/json');
|
res.setHeader('Content-Type', 'application/json');
|
||||||
res.end(JSON.stringify({
|
res.end(JSON.stringify({
|
||||||
success: true
|
success: true
|
||||||
, active: true
|
, active: true
|
||||||
, remote: Object.keys(state.config.ports)[0]
|
, remote: Object.keys(state.config.ports)[0]
|
||||||
, local: local
|
, local: state.config.sshAuto || 22
|
||||||
, saved: !err
|
, saved: !err
|
||||||
, module: 'ssh'
|
, module: 'ssh'
|
||||||
}));
|
}));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user