From aae18e451edeb996193ea0f22e15aa96e38ad35e Mon Sep 17 00:00:00 2001 From: Austin Burk Date: Wed, 31 Aug 2022 12:24:09 -0400 Subject: [PATCH] rename to blocklist to be consistent with the api endpoint --- README.md | 2 +- package-lock.json | 2 +- package.json | 4 ++-- update_blocklist.js | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 79f20bb..5d17c24 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# sudofox/mojang-blacklist +# sudofox/mojang-blocklist I figured I'd try to get a more comprehensive list of the domains blocked by Mojang, so this is my stab at it. diff --git a/package-lock.json b/package-lock.json index c42636f..0a90472 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "mojang-blacklist", + "name": "mojang-blocklist", "version": "1.0.0", "lockfileVersion": 1, "requires": true, diff --git a/package.json b/package.json index 1ab1fe7..9a64a89 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "mojang-blacklist", + "name": "mojang-blocklist", "version": "1.0.0", - "description": "tracking and identifying blacklisted minecraft servers", + "description": "tracking and identifying blocklisted minecraft servers", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" diff --git a/update_blocklist.js b/update_blocklist.js index a6ad161..d6a3f9b 100644 --- a/update_blocklist.js +++ b/update_blocklist.js @@ -1,4 +1,4 @@ -// fetch the blacklisted servers from https://sessionserver.mojang.com/blockedservers and stick it in data/current.txt +// fetch the blocklisted servers from https://sessionserver.mojang.com/blockedservers and stick it in data/current.txt // import http, path, and fs var http = require('https'); @@ -11,7 +11,7 @@ var current_path = path.join(__dirname, 'data', 'current.txt'); var current_file = fs.readFileSync(current_path, 'utf8'); var current_hash_count = current_file.split('\n').length; -// fetch the blacklisted servers from https://sessionserver.mojang.com/blockedservers +// fetch the blocklisted servers from https://sessionserver.mojang.com/blockedservers http.get('https://sessionserver.mojang.com/blockedservers?' + Math.floor(Math.random() * 999999), function(res) { var body = ''; res.on('data', function(chunk) { @@ -30,7 +30,7 @@ http.get('https://sessionserver.mojang.com/blockedservers?' + Math.floor(Math.ra console.log("Writing " + new_hash_count + " hashes (old count: " + current_hash_count + ")"); - // write the blacklisted servers to data/current.txt + // write the blocklisted servers to data/current.txt fs.writeFile(current_path, body, function(err) { if (err) { console.log(err);