From 3bbda5588b8ee201718bfdde3531720c1178e852 Mon Sep 17 00:00:00 2001 From: lqqyt2423 <974923609@qq.com> Date: Tue, 7 Jun 2022 18:37:16 +0800 Subject: [PATCH] tls_record_magic --- proxy/middle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/middle.go b/proxy/middle.go index 08fc4bf..700bbae 100644 --- a/proxy/middle.go +++ b/proxy/middle.go @@ -151,7 +151,7 @@ func (m *Middle) intercept(serverConn *connBuf) { } // https://github.com/mitmproxy/mitmproxy/blob/main/mitmproxy/net/tls.py is_tls_record_magic - if buf[0] == 0x16 && buf[1] == 0x03 && (buf[2] >= 0x0 && buf[2] <= 0x03) { + if buf[0] == 0x16 && buf[1] == 0x03 && buf[2] <= 0x03 { // tls m.Listener.(*listener).connChan <- serverConn } else {