Skip to content

Commit

Permalink
Remove Tor from node database snapshot download (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyoknen authored Jul 23, 2022
1 parent 5c2346a commit d5ecc73
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions proxy16/node/applications.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var path = require('path');
var Datastore = require('nedb');
var progress = require('request-progress');
var targz = require('targz');

const request = require("request");

var Applications = function(settings, applications = {}, proxy) {
if(!settings) settings = {}
Expand Down Expand Up @@ -197,16 +197,7 @@ var Applications = function(settings, applications = {}, proxy) {
let endFile = path.resolve(dest, meta[key].name)

return new Promise(async (resolve, reject) => {
let req;

try {
req = await proxy.transports.request({url: meta[key].url});
} catch(err) {
console.log(err);
reject(err);

return;
}
let req = request(meta[key].url);

progress(req, {
throttle: 500, // Throttle the progress event to 2000ms, defaults to 1000ms
Expand Down

0 comments on commit d5ecc73

Please sign in to comment.