bugfix for #36, ready to release v3.7.7

This commit is contained in:
OttoMao
2015-10-02 14:06:18 +08:00
parent a0c8862be9
commit 31daeebdd5
5 changed files with 18 additions and 13 deletions

View File

@@ -8,7 +8,6 @@ function printLog(content,type){
if(!ifPrint) return;
var tip = content;
console.log(tip);
}

View File

@@ -18,7 +18,8 @@ function webInterface(config){
ipAddress = config.ip,
userRule = config.userRule,
ruleSummary = "",
customMenu = [];
customMenu = [],
server;
try{
ruleSummary = userRule.summary();
@@ -111,13 +112,14 @@ function webInterface(config){
//plugin from rule file
if(typeof userRule._plugIntoWebinterface == "function"){
userRule._plugIntoWebinterface(app,function(){
app.listen(port);
server = app.listen(port);
});
}else{
app.listen(port);
server = app.listen(port);
}
self.app = app;
self.app = app;
self.server = server;
}
inherits(webInterface, events.EventEmitter);