mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 12:59:42 -07:00
Add option to disable websocket SSL cert verify
This commit is contained in:
parent
98ffa3735b
commit
9a00350ffc
1 changed files with 2 additions and 1 deletions
|
@ -21,6 +21,7 @@ from __future__ import unicode_literals
|
||||||
from future.builtins import str
|
from future.builtins import str
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
import ssl
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
@ -149,7 +150,7 @@ def run():
|
||||||
if plexpy.CONFIG.VERIFY_SSL_CERT:
|
if plexpy.CONFIG.VERIFY_SSL_CERT:
|
||||||
sslopt = {'ca_certs': certifi.where()}
|
sslopt = {'ca_certs': certifi.where()}
|
||||||
else:
|
else:
|
||||||
sslopt = None
|
sslopt = {'cert_reqs': ssl.CERT_NONE}
|
||||||
else:
|
else:
|
||||||
uri = 'ws://%s:%s/:/websockets/notifications' % (
|
uri = 'ws://%s:%s/:/websockets/notifications' % (
|
||||||
plexpy.CONFIG.PMS_IP,
|
plexpy.CONFIG.PMS_IP,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue