Skip to content

Commit

Permalink
Fix wrong url used for SSRF filter in fileUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Dec 24, 2024
1 parent 331c7c0 commit 94fdd99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/utils/fileUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ module.exports.downloadFile = (url, filepath, contentTypeFilter = null) => {
'User-Agent': 'audiobookshelf (+https://audiobookshelf.org)'
},
timeout: 30000,
httpAgent: global.DisableSsrfRequestFilter?.(feedUrl) ? null : ssrfFilter(feedUrl),
httpsAgent: global.DisableSsrfRequestFilter?.(feedUrl) ? null : ssrfFilter(feedUrl)
httpAgent: global.DisableSsrfRequestFilter?.(url) ? null : ssrfFilter(url),
httpsAgent: global.DisableSsrfRequestFilter?.(url) ? null : ssrfFilter(url)
})
.then((response) => {
// Validate content type
Expand Down

0 comments on commit 94fdd99

Please sign in to comment.