diff --git a/server/interfaces/api/plexInterfaces.ts b/server/interfaces/api/plexInterfaces.ts index 42ec9cb4a..5373cb58a 100644 --- a/server/interfaces/api/plexInterfaces.ts +++ b/server/interfaces/api/plexInterfaces.ts @@ -14,7 +14,6 @@ export interface PlexConnection { local: boolean; status?: number; message?: string; - host?: string; } export interface PlexDevice { diff --git a/server/routes/settings/index.ts b/server/routes/settings/index.ts index cc1229e2e..719e8c9f7 100644 --- a/server/routes/settings/index.ts +++ b/server/routes/settings/index.ts @@ -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, diff --git a/src/components/Settings/SettingsPlex.tsx b/src/components/Settings/SettingsPlex.tsx index 1127c3898..e3f17e530 100644 --- a/src/components/Settings/SettingsPlex.tsx +++ b/src/components/Settings/SettingsPlex.tsx @@ -134,13 +134,12 @@ const SettingsPlex: React.FC = ({ 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, }) );