From fc3de61cb667cfdff44fac19547fdd8d3866ce5a Mon Sep 17 00:00:00 2001 From: avwo Date: Thu, 5 May 2016 20:14:40 +0800 Subject: [PATCH] feat: Let websocket, tunnel support the built-in rules of the disable and filter attributes --- lib/https/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/https/index.js b/lib/https/index.js index 3720728bf..53ebb7d7b 100644 --- a/lib/https/index.js +++ b/lib/https/index.js @@ -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; + } } } }