ipExists acceses server list correctly

This commit is contained in:
Gabriel Hawk 2022-06-13 01:07:21 -05:00
parent 6f017bf4f6
commit 1e2e42af75

@ -77,7 +77,12 @@ export function DeleteServer(serverkey: string): void {
}
export function ipExists(ip: string): boolean {
return AllServers[ip] != null;
for (const hostName in AllServers) {
if (AllServers[hostName].ip === ip) {
return true
}
}
return false
}
export function createUniqueRandomIp(): string {