diff --git a/config.sample.js b/config.sample.js index beb3e58..86b77b0 100644 --- a/config.sample.js +++ b/config.sample.js @@ -124,16 +124,6 @@ module.exports = { port: 3310 }, - /* - Use DuckDuckGo's proxy when fetching URL uploads. - This may be considered a hack and not supported by DuckDuckGo, so USE AT YOUR OWN RISK. - This should work with any type of URLs, but they have to be direct links, - since DuckDuckGo's proxy will not follow redirects. - NOTE: As of 09/12/18, this is no longer supported. - The option will be removed from config file in the near future. - */ - urlDuckDuckGoProxy: false, - /* Chunk size for chunk uploads. Needs to be in MB. If this is enabled, every files uploaded from the homepage uploader will forcibly be chunked diff --git a/controllers/uploadController.js b/controllers/uploadController.js index 4d7b552..6253df8 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -223,11 +223,6 @@ uploadsController.actuallyUploadByUrl = async (req, res, user, albumid) => { const urls = req.body.urls if (!urls || !(urls instanceof Array)) return erred('Missing "urls" property (Array).') - // DuckDuckGo's proxy - if (config.uploads.urlDuckDuckGoProxy) - return erred('URL uploads unavailable. Please contact the site owner.') - // urls = urls.map(url => `https://proxy.duckduckgo.com/iu/?u=${encodeURIComponent(url)}&f=1`) - let iteration = 0 const infoMap = [] for (const url of urls) { diff --git a/lolisafe.js b/lolisafe.js index a6a930e..bdf211c 100644 --- a/lolisafe.js +++ b/lolisafe.js @@ -99,11 +99,6 @@ safe.use((error, req, res, next) => { }) const start = async () => { - if (config.uploads.urlDuckDuckGoProxy) { - console.warn('Warning: DuckDuckGo\'s proxy is no longer supported as it stops reporting Content-Length header.') - return process.exit(1) - } - if (config.showGitHash) { const gitHash = await new Promise((resolve, reject) => { require('child_process').exec('git rev-parse HEAD', (error, stdout) => {