fix(plex): do not use SSL for local servers (#1418)

This commit is contained in:
TheCatLady
2021-04-13 19:11:34 -04:00
committed by GitHub
parent ecf13123d2
commit 9233fc0785
3 changed files with 3 additions and 5 deletions

View File

@@ -135,7 +135,7 @@ settingsRoutes.get('/plex/devices/servers', async (req, res, next) => {
...settings.plex,
ip: connection.address,
port: connection.port,
useSsl: connection.protocol === 'https' ? true : false,
useSsl: !connection.local && connection.protocol === 'https',
};
const plexClient = new PlexAPI({
plexToken: admin.plexToken,