MAJOR: Updates for Authenticated Web UI and CLI #30

開放中
coolaj86 請求將 77 次程式碼提交從 next 合併至 master
共有 2 個檔案被更改,包括 10 行新增0 行删除
Showing only changes of commit 79d01e2c31 - Show all commits

查看文件

@ -546,6 +546,10 @@ function parseConfig(err, text) {
} else {
console.info('> Rejecting SSH-over-HTTPS for now');
}
} else if ('status' === body.module) {
// TODO funny one this one
console.info('http://localhost:' + (body.port || state.config.ipc.port));
console.info(JSON.stringify(body, null, 2));
} else {
console.info(JSON.stringify(body, null, 2));
}

查看文件

@ -88,6 +88,12 @@ module.exports.create = function (state) {
if (fs.existsSync(portFile)) {
reqOpts.host = 'localhost';
reqOpts.port = parseInt(fs.readFileSync(portFile, 'utf8').trim(), 10);
if (!state.config.ipc) {
state.config.ipc = {};
}
state.config.ipc.type = 'port';
state.config.ipc.path = path.dirname(state._ipc.path);
state.config.ipc.port = reqOpts.port;
} else {
reqOpts.socketPath = state._ipc.path;
}