From 37fdf25eae5884336269839b61c752e6e31bcbe5 Mon Sep 17 00:00:00 2001 From: Cryptkeeper Date: Mon, 1 Feb 2016 05:14:33 -0600 Subject: [PATCH] Add some comments --- lib/util.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/util.js b/lib/util.js index 44921e6..98639e4 100644 --- a/lib/util.js +++ b/lib/util.js @@ -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 = [];