|
|
@ -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
|
|
|
|
// 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
|
|
|
|
// tls
|
|
|
|
m.Listener.(*listener).connChan <- serverConn
|
|
|
|
m.Listener.(*listener).connChan <- serverConn
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|