mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
feature(server) if !ip in config, log localhost
This commit is contained in:
parent
9f76f050c0
commit
77d9330151
1 changed files with 4 additions and 5 deletions
|
|
@ -57,10 +57,9 @@
|
|||
middleware.listen(socket);
|
||||
}
|
||||
|
||||
logServer(port, ip);
|
||||
};
|
||||
|
||||
function logServer(port, ip) {
|
||||
if (!config('ip'))
|
||||
ip = 'localhost';
|
||||
|
||||
Util.log('url: http://' + ip + ':' + port);
|
||||
}
|
||||
};
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue