Skip to content

Commit

Permalink
download db via https
Browse files Browse the repository at this point in the history
  • Loading branch information
arve0 committed Nov 16, 2016
1 parent c47712a commit 9228f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/updatedb.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var tmpPath = path.join(__dirname, '..', 'tmp');

var databases = [{
type: 'country',
url: 'http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip',
url: 'https://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip',
src: 'GeoIPCountryWhois.csv',
dest: 'geoip-country.dat'
}];
Expand Down

2 comments on commit 9228f20

@fpmk
Copy link

@fpmk fpmk commented on 9228f20 Jan 30, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, i'm getting the error when i'm trying to install it via npm.

_http_client.js:55
    throw new Error('Protocol "' + protocol + '" not supported. ' +
    ^

Error: Protocol "https:" not supported. Expected "http:"

seems u forgot to change require('http') to require('https')

thanks.

@arve0
Copy link
Owner Author

@arve0 arve0 commented on 9228f20 Jan 31, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi!
Thanks for reporting. I'll have a look at it when I have some extra time. For now you may use v1.1.3 which does not contain this bug.

Please sign in to comment.