mirror of
https://github.com/avwo/whistle.git
synced 2026-10-28 22:59:50 +08:00
refactor: handle the plugins of websocket
This commit is contained in:
@@ -105,6 +105,9 @@ function handleWebsocket(socket, clientIp, callback) {
|
||||
if (filter.rule) {
|
||||
plugin = null;
|
||||
}
|
||||
Object.keys(filter).forEach(function(name) {
|
||||
_rules[name] = null;
|
||||
});
|
||||
}
|
||||
connect();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user