Skip to content

Commit

Permalink
make SNIExtension pickleable
Browse files Browse the repository at this point in the history
  • Loading branch information
tomato42 committed May 10, 2022
1 parent 8277089 commit 2e8fe11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tlslite/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,8 @@ class SNIExtension(TLSExtension):
"""

ServerName = namedtuple('ServerName', 'name_type name')
# make the namedtuple pickleable
globals()[ServerName.__name__] = ServerName

def __init__(self):
"""
Expand Down

0 comments on commit 2e8fe11

Please sign in to comment.