mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
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,
|
||||
|
@@ -134,13 +134,12 @@ const SettingsPlex: React.FC<SettingsPlexProps> = ({ onComplete }) => {
|
||||
dev.connection.forEach((conn) =>
|
||||
finalPresets.push({
|
||||
name: dev.name,
|
||||
ssl: conn.protocol === 'https' ? true : false,
|
||||
ssl: !conn.local && conn.protocol === 'https',
|
||||
uri: conn.uri,
|
||||
address: conn.address,
|
||||
port: conn.port,
|
||||
local: conn.local,
|
||||
host: conn.host,
|
||||
status: conn.status === 200 ? true : false,
|
||||
status: conn.status === 200,
|
||||
message: conn.message,
|
||||
})
|
||||
);
|
||||
|
Reference in New Issue
Block a user