diff --git a/lib/server.js b/lib/server.js index c25cffd4..04c36819 100644 --- a/lib/server.js +++ b/lib/server.js @@ -146,7 +146,7 @@ this.Config.ip; if(!this.IP) - this.IP = main.Win32 ? '127.0.0.1' : '0.0.0.0'; + this.IP = main.WIN32 ? '127.0.0.1' : '0.0.0.0'; /* server mode or testing mode */ if (lConfig.server) { diff --git a/lib/server/socket.js b/lib/server/socket.js index 20579ca7..a01346f5 100644 --- a/lib/server/socket.js +++ b/lib/server/socket.js @@ -61,7 +61,7 @@ if( Util.strCmp(pCommand, 'exit') ) if(main.WIN32) - pCommand = 'taskkill /PID ' + process.pid; + pCommand = 'taskkill -f /PID ' + process.pid; else pCommand = 'kill -9 ' + process.pid; }