aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/contrib/tls/_constructs.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/contrib/tls/_constructs.py')
-rw-r--r--libmproxy/contrib/tls/_constructs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmproxy/contrib/tls/_constructs.py b/libmproxy/contrib/tls/_constructs.py
index a5f8b524..9c57a799 100644
--- a/libmproxy/contrib/tls/_constructs.py
+++ b/libmproxy/contrib/tls/_constructs.py
@@ -4,8 +4,8 @@
from __future__ import absolute_import, division, print_function
-from construct import Array, Bytes, Struct, UBInt16, UBInt32, UBInt8, PascalString, Embed, \
- TunnelAdapter, GreedyRange, Switch
+from construct import (Array, Bytes, Struct, UBInt16, UBInt32, UBInt8, PascalString, Embed, TunnelAdapter, GreedyRange,
+ Switch, OptionalGreedyRange)
from .utils import UBInt24
@@ -113,7 +113,7 @@ Extension = Struct(
extensions = TunnelAdapter(
PascalString("extensions", length_field=UBInt16("extensions_length")),
- GreedyRange(Extension)
+ OptionalGreedyRange(Extension)
)
ClientHello = Struct(