Skip to content

Commit

Permalink
forgot nord ips
Browse files Browse the repository at this point in the history
  • Loading branch information
Umkus committed Sep 24, 2024
1 parent 51a3504 commit ad8ee3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const asnsV4 = `${__dirname}/../data/ip2asn-v4.tsv`
const asnsV6 = `${__dirname}/../data/ip2asn-v6.tsv`

const asnsDcs = `${__dirname}/../data/asns_dcs.csv`
const fileNord = `${__dirname}/../data/ips_nord.csv`;

console.log('Preparing files...')

Expand All @@ -24,6 +25,7 @@ async function downloadAndDecompress(url, outputPath) {
await Promise.all([
downloadAndDecompress('https://iptoasn.com/data/ip2asn-v4.tsv.gz', asnsV4),
downloadAndDecompress('https://iptoasn.com/data/ip2asn-v6.tsv.gz', asnsV6),
axios.get('https://github.com/Umkus/nordvpn-ips/releases/download/ips/ips.csv', { responseType: 'blob' }).then((res) => writeFileSync(fileNord, res.data))
])


Expand Down

0 comments on commit ad8ee3d

Please sign in to comment.