diff --git a/GeminiServer.js b/GeminiServer.js index 75fe73d..bf79ff2 100644 --- a/GeminiServer.js +++ b/GeminiServer.js @@ -17,10 +17,10 @@ function wildHostMatches(wildHost, hostInstance) { if (wildHost[0] === "*") { //Return if everything after the first . matches //TODO: what happens if I'm dumb and enter *ww.example.com - return wildHost.slice(wildHost.indexOf(".")) === hostInstance.slice(hostInstance.indexOf(".")) + return wildHost.toLowerCase().slice(wildHost.indexOf(".")) === hostInstance.toLowerCase().slice(hostInstance.indexOf(".")) }else { //If there's no wildcard, just return if they match - return wildHost === hostInstance; + return wildHost.toLowerCase() === hostInstance.toLowerCase(); } }