gluetun proxy for wget
This commit is contained in:
parent
5dd7052225
commit
c33251a807
|
@ -28,7 +28,9 @@ async function downloadVideo(url, ws, id) {
|
|||
let prevBytes = 0
|
||||
let speed = 0
|
||||
const alreadyPrecentages = []
|
||||
const download = wget.download(downloadJson.url, `./videos/${id}.mp4`)
|
||||
const download = wget.download(downloadJson.url, `./videos/${id}.mp4`, {
|
||||
proxy: 'http://gluetun:8888'
|
||||
})
|
||||
|
||||
download.on('start', fileSize => {
|
||||
size = fileSize
|
||||
|
|
Loading…
Reference in New Issue