Do not allow insecure HTTPS websocket connections for Kodi Leia in any case

This commit is contained in:
croneter 2019-02-05 12:38:53 +01:00
parent 7b21caceae
commit 0e16eb703a

View file

@ -167,7 +167,7 @@ class PMS_Websocket(WebSocket):
if app.ACCOUNT.plex_token:
uri += '?X-Plex-Token=%s' % app.ACCOUNT.plex_token
sslopt = {}
if utils.settings('sslverify') == "false":
if v.KODIVERSION == 17 and utils.settings('sslverify') == "false":
sslopt["cert_reqs"] = CERT_NONE
LOG.debug("%s: Uri: %s, sslopt: %s",
self.__class__.__name__, uri, sslopt)