mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 09:37:37 +00:00
web: fix ~websocket
filter
This commit is contained in:
parent
e8ae38c8b6
commit
628d6201ae
@ -2279,7 +2279,7 @@ export default (function() {
|
||||
|
||||
// ~websocket
|
||||
function websocketFilter(flow){
|
||||
return flow.type === "websocket";
|
||||
return !!flow.websocket;
|
||||
}
|
||||
websocketFilter.desc = "is a Websocket Flow";
|
||||
|
||||
|
@ -300,7 +300,7 @@ function url(regex){
|
||||
|
||||
// ~websocket
|
||||
function websocketFilter(flow){
|
||||
return flow.type === "websocket";
|
||||
return !!flow.websocket;
|
||||
}
|
||||
websocketFilter.desc = "is a Websocket Flow";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user