mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
SAB test to warn if Category Local Path is set when connection is to localhost
This commit is contained in:
parent
3b08f317dd
commit
8ae354a56b
@ -361,6 +361,7 @@ protected override void Test(List<ValidationFailure> failures)
|
||||
if (!Settings.TvCategoryLocalPath.IsNullOrWhiteSpace())
|
||||
{
|
||||
failures.AddIfNotNull(TestFolder(Settings.TvCategoryLocalPath, "TvCategoryLocalPath"));
|
||||
failures.AddIfNotNull(TestCategoryLocalPath());
|
||||
}
|
||||
}
|
||||
|
||||
@ -460,5 +461,15 @@ private ValidationFailure TestCategory()
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
private ValidationFailure TestCategoryLocalPath()
|
||||
{
|
||||
if (Settings.Host == "127.0.0.1" || Settings.Host == "localhost")
|
||||
{
|
||||
return new ValidationFailure("TvCategoryLocalPath", "Do not set when SABnzbd is running on the same system as NzbDrone");
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user