mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fixed IP on windows
This commit is contained in:
parent
74cf4d5cdf
commit
f21d4a0657
2 changed files with 5 additions and 7 deletions
|
|
@ -174,6 +174,8 @@ Editor window could not be cloused.
|
|||
|
||||
* Added windows support on terminal command: "cloudcmd exit".
|
||||
|
||||
* Fixed IP on windows.
|
||||
|
||||
2012.10.01, Version 0.1.7
|
||||
|
||||
* Changed name of menu files, fixed npm and jitsu
|
||||
|
|
|
|||
|
|
@ -12,8 +12,7 @@
|
|||
Config : {
|
||||
server : true,
|
||||
socket : true,
|
||||
port : 80,
|
||||
ip : '127.0.0.1'
|
||||
port : 80
|
||||
},
|
||||
|
||||
/* функция, которая генерирует заголовки
|
||||
|
|
@ -146,11 +145,8 @@
|
|||
this.IP = process.env.IP || /* c9 */
|
||||
this.Config.ip;
|
||||
|
||||
/* if Cloud Server started on jitsu */
|
||||
if(process.env.HOME &&
|
||||
!process.env.HOME.indexOf('/opt/haibu')) {
|
||||
this.IP = '0.0.0.0';
|
||||
}
|
||||
if(!this.IP)
|
||||
this.IP = main.Win32 ? '127.0.0.1' : '0.0.0.0';
|
||||
|
||||
/* server mode or testing mode */
|
||||
if (lConfig.server) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue