mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
feature(cloudcmd) add ability to disable console with "--no-console" (#65)
This commit is contained in:
parent
6b26b26115
commit
c3c008ff72
12 changed files with 79 additions and 14 deletions
|
|
@ -108,12 +108,6 @@ function listen(prefix, socket) {
|
|||
|
||||
config.listen(socket, authCheck);
|
||||
|
||||
webconsole({
|
||||
prefix: prefix + '/console',
|
||||
socket: socket,
|
||||
authCheck: authCheck
|
||||
});
|
||||
|
||||
edward.listen(socket, {
|
||||
size: size,
|
||||
root: root,
|
||||
|
|
@ -152,6 +146,12 @@ function listen(prefix, socket) {
|
|||
prefix: prefix + '/ishtar',
|
||||
authCheck: authCheck
|
||||
});
|
||||
|
||||
config('console') && webconsole({
|
||||
prefix: prefix + '/console',
|
||||
socket: socket,
|
||||
authCheck: authCheck
|
||||
});
|
||||
}
|
||||
|
||||
function cloudcmd(prefix) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue