Merge pull request #296 from hydroflame/serverExists-all-true

fixed serverExists returning true for non-existent IPs
This commit is contained in:
danielyxie 2018-06-15 01:04:52 -05:00 committed by GitHub
commit bee20b090c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -873,9 +873,11 @@ function GetServerByHostname(hostname) {
function getServer(s) {
if (!isValidIPAddress(s)) {
return GetServerByHostname(s);
} else {
}
if(AllServers[s] !== undefined) {
return AllServers[s];
}
return null;
}
//Debugging tool