mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-07-29 00:59:10 +00:00
bugfix for #36, ready to release v3.7.7
This commit is contained in:
@@ -8,7 +8,6 @@ function printLog(content,type){
|
||||
if(!ifPrint) return;
|
||||
|
||||
var tip = content;
|
||||
|
||||
console.log(tip);
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user