2022-11-20 18:07:22 +01:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [hasTorRouter](./bitburner.ns.hastorrouter.md)
|
|
|
|
|
|
|
|
## NS.hasTorRouter() method
|
|
|
|
|
|
|
|
Returns whether the player has access to the darkweb.
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Signature:**
|
2022-11-20 18:07:22 +01:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
hasTorRouter(): boolean;
|
|
|
|
```
|
2023-02-11 19:18:50 +01:00
|
|
|
**Returns:**
|
2022-11-20 18:07:22 +01:00
|
|
|
|
|
|
|
boolean
|
|
|
|
|
|
|
|
Whether player has access to the dark web.
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
RAM cost: 0.05GB
|
|
|
|
|
|
|
|
## Example 1
|
|
|
|
|
|
|
|
|
|
|
|
```js
|
|
|
|
// NS1:
|
|
|
|
if (hasTorRouter()) tprint("TOR router detected.");
|
|
|
|
```
|
|
|
|
|
|
|
|
## Example 2
|
|
|
|
|
|
|
|
|
|
|
|
```js
|
|
|
|
// NS2:
|
|
|
|
if (ns.hasTorRouter()) tprint("TOR router detected.");
|
|
|
|
```
|
|
|
|
|