Add some comments

This commit is contained in:
Cryptkeeper 2016-02-01 05:14:33 -06:00
parent f6a27f0469
commit 37fdf25eae

@ -5,6 +5,8 @@ var servers = require('../servers.json');
var serverNameLookup = {};
// Finds a server in servers.json with a matching IP.
// If it finds one, it caches the result for faster future lookups.
function getServerNameByIp(ip) {
var lookupName = serverNameLookup[ip];
@ -23,6 +25,7 @@ function getServerNameByIp(ip) {
}
}
// Returns a list of configured server IPs from servers.json
function getServerIps() {
var ips = [];