mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
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
@ -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…
x
Reference in New Issue
Block a user