mirror of
https://github.com/avwo/whistle.git
synced 2026-10-22 09:34:35 +08:00
feat: Let websocket, tunnel support the built-in rules of the disable and filter attributes
This commit is contained in:
+3
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user