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.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/libmproxy/protocol2/auto.py b/libmproxy/protocol2/auto.py
deleted file mode 100644
index 4a930720..00000000
--- a/libmproxy/protocol2/auto.py
+++ /dev/null
@@ -1,20 +0,0 @@
-from __future__ import (absolute_import, print_function, division)
-from .layer import Layer
-
-
-class AutoLayer(Layer):
- def __call__(self):
- d = self.client_conn.rfile.peek(1)
-
- if not d:
- return
- # TLS ClientHello magic, see http://www.moserware.com/2009/06/first-few-milliseconds-of-https.html#client-hello
- if d[0] == "\x16":
- layer = TlsLayer(self, True, True)
- else:
- layer = TcpLayer(self)
- for m in layer():
- yield m
-
-from .rawtcp import TcpLayer
-from .tls import TlsLayer