fixed IP on windows

This commit is contained in:
coderaiser 2012-12-10 05:23:13 -05:00
parent 74cf4d5cdf
commit f21d4a0657
2 changed files with 5 additions and 7 deletions

View file

@ -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

View file

@ -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) {