Removed lines related to DuckDuckGo's proxy

I think I've let them sit for like a week or so. It should've been
enough of a buffer time for everyone else.
This commit is contained in:
Bobby Wibowo 2018-12-19 01:19:04 +07:00
parent f3d1aa1c8c
commit 89ec426e71
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF
3 changed files with 0 additions and 20 deletions

View File

@ -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

View File

@ -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) {

View File

@ -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) => {