Skip to content

Commit

Permalink
make SNIExtension pickleable
Browse files Browse the repository at this point in the history
  • Loading branch information
tomato42 committed Feb 2, 2022
1 parent 10fbafb commit 38dbe7d
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 38dbe7d

Please sign in to comment.