mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
947 B
947 B
Home > bitburner > Darknet > isDarknetServer
Darknet.isDarknetServer() method
Returns whether the server is a darknet server.
Returns false if the server does not exist or has gone offline recently. This function does not require DarkscapeNavigator.exe.
Signature:
isDarknetServer(host?: string): boolean;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
host |
string |
(Optional) Optional. Hostname/IP for the requested server object. Defaults to the running script's server. |
Returns:
boolean
true if the server is a darknet server, false otherwise.
Remarks
RAM cost: 0.1 GB