mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-21 23:22:04 +02:00
1.1 KiB
1.1 KiB
Home > bitburner > Darknet > getServerDetails
Darknet.getServerDetails() method
Returns the darknet-specific details of the server.
If the darknet server has recently gone offline, the returned object will be a dummy server object with isOnline: false.
Signature:
getServerDetails(host?: string): DarknetServerDetails & { isOnline: boolean };
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
host |
string |
(Optional) Hostname/IP of the server to analyze. Defaults to the running script's server if not specified. |
Returns:
DarknetServerDetails & { isOnline: boolean }
An object containing the server's darknet-specific details.
Remarks
RAM cost: 0.1 GB