Add missing import

readme-wiki
xorrior 2017-11-02 22:21:25 -04:00
parent e5729e67d5
commit 97b1e24114
3 changed files with 5 additions and 0 deletions

View File

@ -974,6 +974,7 @@ def send_message(packets=None):
pyversion = sys.version_info
# support any version of tls
pyversion = sys.version_info
if pyversion[0] == 2 and pyversion[1] == 7 and pyversion[2] >= 13:
proto = ssl.PROTOCOL_TLS
elif pyversion[0] >= 3:

View File

@ -5,6 +5,7 @@ import os
import ssl
import time
import copy
import sys
from pydispatch import dispatcher
from flask import Flask, request, make_response
@ -636,6 +637,7 @@ class Listener:
certPath = os.path.abspath(certPath)
# support any version of tls
pyversion = sys.version_info
if pyversion[0] == 2 and pyversion[1] == 7 and pyversion[2] >= 13:
proto = ssl.PROTOCOL_TLS
elif pyversion[0] >= 3:

View File

@ -5,6 +5,7 @@ import os
import ssl
import time
import copy
import sys
from pydispatch import dispatcher
from flask import Flask, request, make_response
@ -618,6 +619,7 @@ class Listener:
certPath = os.path.abspath(certPath)
# support any version of tls
pyversion = sys.version_info
if pyversion[0] == 2 and pyversion[1] == 7 and pyversion[2] >= 13:
proto = ssl.PROTOCOL_TLS
elif pyversion[0] >= 3: