Skip to content

Commit 2e8fe11

Browse files
committed
make SNIExtension pickleable
1 parent 8277089 commit 2e8fe11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tlslite/extensions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,8 @@ class SNIExtension(TLSExtension):
674674
"""
675675

676676
ServerName = namedtuple('ServerName', 'name_type name')
677+
# make the namedtuple pickleable
678+
globals()[ServerName.__name__] = ServerName
677679

678680
def __init__(self):
679681
"""

0 commit comments

Comments
 (0)