mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-14 00:16:21 +00:00
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:
parent
f3d1aa1c8c
commit
89ec426e71
@ -124,16 +124,6 @@ module.exports = {
|
|||||||
port: 3310
|
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.
|
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
|
If this is enabled, every files uploaded from the homepage uploader will forcibly be chunked
|
||||||
|
@ -223,11 +223,6 @@ uploadsController.actuallyUploadByUrl = async (req, res, user, albumid) => {
|
|||||||
const urls = req.body.urls
|
const urls = req.body.urls
|
||||||
if (!urls || !(urls instanceof Array)) return erred('Missing "urls" property (Array).')
|
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
|
let iteration = 0
|
||||||
const infoMap = []
|
const infoMap = []
|
||||||
for (const url of urls) {
|
for (const url of urls) {
|
||||||
|
@ -99,11 +99,6 @@ safe.use((error, req, res, next) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const start = async () => {
|
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) {
|
if (config.showGitHash) {
|
||||||
const gitHash = await new Promise((resolve, reject) => {
|
const gitHash = await new Promise((resolve, reject) => {
|
||||||
require('child_process').exec('git rev-parse HEAD', (error, stdout) => {
|
require('child_process').exec('git rev-parse HEAD', (error, stdout) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user