fix(plex): do not use SSL for local servers (#1418)
This commit is contained in:
@@ -14,7 +14,6 @@ export interface PlexConnection {
|
||||
local: boolean;
|
||||
status?: number;
|
||||
message?: string;
|
||||
host?: string;
|
||||
}
|
||||
|
||||
export interface PlexDevice {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user