aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol2/auto.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/protocol2/auto.py')
-rw-r--r--libmproxy/protocol2/auto.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmproxy/protocol2/auto.py b/libmproxy/protocol2/auto.py
index 1c4293ac..a00f1f52 100644
--- a/libmproxy/protocol2/auto.py
+++ b/libmproxy/protocol2/auto.py
@@ -5,6 +5,8 @@ from .layer import Layer
class AutoLayer(Layer):
def __call__(self):
d = self.client_conn.rfile.peek(1)
+
+ # TLS ClientHello magic, see http://www.moserware.com/2009/06/first-few-milliseconds-of-https.html#client-hello
if d[0] == "\x16":
layer = SslLayer(self, True, True)
else: