mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
63 lines
947 B
Markdown
63 lines
947 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Darknet](./bitburner.darknet.md) > [isDarknetServer](./bitburner.darknet.isdarknetserver.md)
|
|
|
|
## 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:**
|
|
|
|
```typescript
|
|
isDarknetServer(host?: string): boolean;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
<table><thead><tr><th>
|
|
|
|
Parameter
|
|
|
|
|
|
</th><th>
|
|
|
|
Type
|
|
|
|
|
|
</th><th>
|
|
|
|
Description
|
|
|
|
|
|
</th></tr></thead>
|
|
<tbody><tr><td>
|
|
|
|
host
|
|
|
|
|
|
</td><td>
|
|
|
|
string
|
|
|
|
|
|
</td><td>
|
|
|
|
_(Optional)_ Optional. Hostname/IP for the requested server object. Defaults to the running script's server.
|
|
|
|
|
|
</td></tr>
|
|
</tbody></table>
|
|
|
|
**Returns:**
|
|
|
|
boolean
|
|
|
|
true if the server is a darknet server, false otherwise.
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 0.1 GB
|
|
|