diff --git a/src/Server.js b/src/Server.js index 6143ef730..d73b82ed2 100644 --- a/src/Server.js +++ b/src/Server.js @@ -177,7 +177,7 @@ function initForeignServers() { AddToAllServers(server); if (metadata.networkLayer !== undefined) { - networkLayers[metadata.networkLayer - 1].push(server); + networkLayers[toNumber(metadata.networkLayer) - 1].push(server); } } diff --git a/src/data/servers.ts b/src/data/servers.ts index 9dcf1789e..ac0b88c75 100644 --- a/src/data/servers.ts +++ b/src/data/servers.ts @@ -54,7 +54,7 @@ interface IServerMetadata { * This value is between 1 and 15. * If this is not populated, @specialName should be. */ - networkLayer?: number; + networkLayer?: number | IMinMaxRange; /** * The number of ports that must be opened before the player can execute NUKE.