feat: Let websocket, tunnel support the built-in rules of the disable and filter attributes

This commit is contained in:
avwo
2016-05-05 20:14:40 +08:00
parent f70d1aa628
commit fc3de61cb6
+3 -3
View File
@@ -100,9 +100,9 @@ function handleWebsocket(socket, clientIp, callback) {
plugin = pluginMgr.getPluginByRuleUrl(ruleUrlValue);
if (plugin && plugin.rulesMgr) {
extend(filter, plugin.rulesMgr.resolveFilter(fullUrl));
Object.keys(filter).forEach(function(name) {
_rules[name] = null;
});
if (filter.rule) {
plugin = null;
}
}
}
}