This commit is contained in:
Olivier Gagnon
2021-12-16 15:21:00 -05:00
parent 1b680431b6
commit e16fba2418
7 changed files with 18 additions and 36 deletions

View File

@@ -4182,15 +4182,14 @@ export interface NS extends Singularity {
* @remarks
* RAM cost: 0.2 GB
*
* Returns an array containing the hostnames or IPs of all servers that are one
* node way from the specified target server. The hostnames/IPs in the returned
* Returns an array containing the hostnames of all servers that are one
* node way from the specified target server. The hostnames in the returned
* array are strings.
*
* @param host - Hostname of the server to scan.
* @param hostnames - Optional boolean specifying whether the function should output hostnames (if true) or IP addresses (if false).
* @returns Returns an string of hostnames or IP.
* @returns Returns an string of hostnames.
*/
scan(host: string, hostnames?: boolean): string[];
scan(host?: string): string[];
/**
* Runs NUKE.exe on a server.