From dddb5fbba9df5401b3b6e8c6ba4f23502aa89d89 Mon Sep 17 00:00:00 2001 From: Rob Date: Sat, 26 Feb 2022 23:09:28 -0600 Subject: [PATCH] remove some comments, not needed. --- scanner.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/scanner.js b/scanner.js index e7759ab..5da44bc 100644 --- a/scanner.js +++ b/scanner.js @@ -20,8 +20,6 @@ if(process.params['geo-ip']) { return console.log("NO MAXMIND DOWNLOAD KEY WAS PROVIDED! CANNOT DOWNLOAD THE DATABASE WITHOUT A KEY!"); } - //var file = fs.createWriteStream("./GeoLite2-City.tar"); - //https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key= return require('https').get("https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key="+ process.params['maxmind-key'] +"&suffix=tar.gz", function(resp){ const zlib = require('zlib'); const tar = require('tar-stream'); @@ -34,7 +32,6 @@ if(process.params['geo-ip']) console.log("Wrote tar to disk. Extracting DB file..."); var extract = tar.extract(); extract.on('entry', function(header, stream, next){ - //console.log(header); if (header.name.match(/.*?\.mmdb/)) { stream.pipe(dbfile);