Remove debug warnings; Update docs

This commit is contained in:
DarthSim
2019-12-25 14:49:20 +06:00
parent 70b3252373
commit 56f69c193c
4 changed files with 8 additions and 6 deletions

View File

@@ -795,11 +795,9 @@ func applyProcessingOptions(po *processingOptions, options urlOptions) error {
func isAllowedSource(imageURL string) bool {
logWarning("URL: %s", imageURL)
if len(conf.AllowedSources) == 0 {
logWarning("No sources set")
return true
}
for _, val := range conf.AllowedSources {
logWarning("Allowed Source: %s", string(val))
if strings.HasPrefix(imageURL, string(val)) {
return true
}