Fix TLS with eventlet (#2151)
* Fix TLS with eventlet This fixes a simple error on my part when implementing the WSGI stuff. eventlet.wrap_ssl() returns a wrapped socket, it does not modify the object passed to it. We need to grab the returned value and use that. * Fix style issue
This commit is contained in:
parent
c96f73d1be
commit
712c51e283
1 changed files with 2 additions and 2 deletions
|
@ -243,8 +243,8 @@ class HomeAssistantWSGI(object):
|
|||
|
||||
sock = eventlet.listen((self.server_host, self.server_port))
|
||||
if self.ssl_certificate:
|
||||
eventlet.wrap_ssl(sock, certfile=self.ssl_certificate,
|
||||
keyfile=self.ssl_key, server_side=True)
|
||||
sock = eventlet.wrap_ssl(sock, certfile=self.ssl_certificate,
|
||||
keyfile=self.ssl_key, server_side=True)
|
||||
wsgi.server(sock, self)
|
||||
|
||||
def dispatch_request(self, request):
|
||||
|
|
Loading…
Add table
Reference in a new issue