mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-31 03:50:11 -07:00
Add config option to force SSL connections to PMS.
This commit is contained in:
parent
4f00ecc070
commit
61daedf1a5
3 changed files with 12 additions and 2 deletions
|
@ -24,7 +24,10 @@ class PmsConnect(object):
|
|||
"""
|
||||
|
||||
def __init__(self):
|
||||
self.protocol = 'HTTP'
|
||||
if plexpy.CONFIG.PMS_SSL:
|
||||
self.protocol = 'HTTPS'
|
||||
else:
|
||||
self.protocol = 'HTTP'
|
||||
self.request_handler = http_handler.HTTPHandler(host=plexpy.CONFIG.PMS_IP,
|
||||
port=plexpy.CONFIG.PMS_PORT,
|
||||
token=plexpy.CONFIG.PMS_TOKEN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue