This commit is contained in:
Olivier Gagnon 2022-04-12 14:06:24 -04:00
parent 243cdceb8c
commit 8958046421
2 changed files with 5 additions and 5 deletions

@ -240,7 +240,7 @@ export async function determineAllPossibilitiesForTabCompletion(
if (isCommand("connect")) { if (isCommand("connect")) {
// All directly connected and backdoored servers are reachable // All directly connected and backdoored servers are reachable
console.log(GetAllServers());
return GetAllServers() return GetAllServers()
.filter( .filter(
(server) => (server) =>

@ -42,10 +42,10 @@ describe("determineAllPossibilitiesForTabCompletion", function () {
requiredHackingSkill: 1, requiredHackingSkill: 1,
serverGrowth: 3000, serverGrowth: 3000,
}); });
Player.getHomeComputer().serversOnNetwork.push(closeServer.ip); Player.getHomeComputer().serversOnNetwork.push(closeServer.hostname);
closeServer.serversOnNetwork.push(Player.getHomeComputer().ip); closeServer.serversOnNetwork.push(Player.getHomeComputer().hostname);
closeServer.serversOnNetwork.push(farServer.ip); closeServer.serversOnNetwork.push(farServer.hostname);
farServer.serversOnNetwork.push(closeServer.ip); farServer.serversOnNetwork.push(closeServer.hostname);
AddToAllServers(closeServer); AddToAllServers(closeServer);
AddToAllServers(farServer); AddToAllServers(farServer);
}); });