mirror of
https://github.com/sct/overseerr.git
synced 2025-09-28 13:04:23 +02:00
fix(tautulli): only test connection if hostname is defined (#3573)
This commit is contained in:
@@ -254,6 +254,7 @@ settingsRoutes.post('/tautulli', async (req, res, next) => {
|
||||
|
||||
Object.assign(settings.tautulli, req.body);
|
||||
|
||||
if (settings.tautulli.hostname) {
|
||||
try {
|
||||
const tautulliClient = new TautulliAPI(settings.tautulli);
|
||||
|
||||
@@ -274,6 +275,7 @@ settingsRoutes.post('/tautulli', async (req, res, next) => {
|
||||
message: 'Unable to connect to Tautulli.',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return res.status(200).json(settings.tautulli);
|
||||
});
|
||||
|
Reference in New Issue
Block a user