new TorConfig(torrcopt)
Create a valid torrc configuration file.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
torrc | Object.<string, string> | <optional> | Tor configuration properties. |
- Source
Members
content
PropertiesName | Type | Description |
---|---|---|
content | Array.<string> | Each line of the torrc that was created. |
- Source
datadir
PropertiesName | Type | Description |
---|---|---|
datadir | string | Data directory tor will use. |
- Source
Methods
toString() → {string}
Gets the torrc content as a string.
- Source
Returns:
- Type:
- string
writeLocal() → {Array.<string>}
Writes the torrc locally to the module.
- Source
Returns:
- Type:
- Array.<string>