def register_router(self, router):
super(SecureWebSocket, self).register_router(router)
self.ipv = router.ipv
# PROTOCOL_TLSv1_1 and PROTOCOL_TLSv1_2 are only available if Python is
# linked with OpenSSL 1.0.1 or later.
try:
self.ssl_version = ssl.PROTOCOL_TLSv1_2
except AttributeError:
raise WampyError("Your Python Environment does not support TLS")
self.certificate = router.certificate
评论列表
文章目录