diff options
Diffstat (limited to 'mitmproxy/addons/check_alpn.py')
-rw-r--r-- | mitmproxy/addons/check_alpn.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/mitmproxy/addons/check_alpn.py b/mitmproxy/addons/check_alpn.py deleted file mode 100644 index 193159b2..00000000 --- a/mitmproxy/addons/check_alpn.py +++ /dev/null @@ -1,17 +0,0 @@ -import mitmproxy -from mitmproxy.net import tcp -from mitmproxy import ctx - - -class CheckALPN: - def __init__(self): - self.failed = False - - def configure(self, updated): - self.failed = mitmproxy.ctx.master.options.http2 and not tcp.HAS_ALPN - if self.failed: - ctx.log.warn( - "HTTP/2 is disabled because ALPN support missing!\n" - "OpenSSL 1.0.2+ required to support HTTP/2 connections.\n" - "Use --no-http2 to silence this warning." - ) |