diff options
author | dequis <dx@dxzone.com.ar> | 2017-03-14 01:54:31 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2017-03-14 01:57:22 -0300 |
commit | f351d0a3079d88d98934b7e9a48c2ffb4a3018a0 (patch) | |
tree | 38af60d6d112a552846a7dd543722cd31c797213 /web/src | |
parent | 1f377435495a7db9c888dd5ce10a51b6f3c3f8ad (diff) | |
download | mitmproxy-f351d0a3079d88d98934b7e9a48c2ffb4a3018a0.tar.gz mitmproxy-f351d0a3079d88d98934b7e9a48c2ffb4a3018a0.tar.bz2 mitmproxy-f351d0a3079d88d98934b7e9a48c2ffb4a3018a0.zip |
Match ~d and ~u filters against pretty_host too
Changed the ~u filter in the console UI to match the behavior of
mitmweb, which only matches against pretty_url, never against url.
Diffstat (limited to 'web/src')
-rw-r--r-- | web/src/js/filt/filt.peg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/src/js/filt/filt.peg b/web/src/js/filt/filt.peg index b2576661..12959474 100644 --- a/web/src/js/filt/filt.peg +++ b/web/src/js/filt/filt.peg @@ -96,7 +96,7 @@ function responseBody(regex){ function domain(regex){ regex = new RegExp(regex, "i"); function domainFilter(flow){ - return flow.request && regex.test(flow.request.host); + return flow.request && (regex.test(flow.request.host) || regex.test(flow.request.pretty_host)); } domainFilter.desc = "domain matches " + regex; return domainFilter; |