mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-29 12:27:07 +02:00
Added commands for port breaking programs in Netscript
This commit is contained in:
@@ -713,6 +713,15 @@ GetServerByHostname = function(hostname) {
|
||||
return null;
|
||||
}
|
||||
|
||||
//Get server by IP or hostname. Returns null if invalid
|
||||
getServer = function(s) {
|
||||
if (!isValidIPAddress(s)) {
|
||||
return GetServerByHostname(s);
|
||||
} else {
|
||||
return AllServers[s];
|
||||
}
|
||||
}
|
||||
|
||||
//Debugging tool
|
||||
PrintAllServers = function() {
|
||||
for (var ip in AllServers) {
|
||||
|
||||
Reference in New Issue
Block a user