sing-box/docs/configuration/outbound/tor.md

52 lines
797 B
Markdown
Raw Permalink Normal View History

2022-08-20 16:59:49 +00:00
### Structure
```json
{
2022-08-31 05:21:29 +00:00
"type": "tor",
"tag": "tor-out",
"executable_path": "/usr/bin/tor",
"extra_args": [],
"data_directory": "$HOME/.cache/tor",
"torrc": {
"ClientOnly": 1
},
... // Dial Fields
2022-08-20 16:59:49 +00:00
}
```
!!! info ""
2022-08-23 15:15:56 +00:00
Embedded tor is not included by default, see [Installation](/#installation).
2022-08-20 16:59:49 +00:00
2022-08-31 05:21:29 +00:00
### Fields
2022-08-20 16:59:49 +00:00
#### executable_path
The path to the Tor executable.
Embedded Tor will be ignored if set.
#### extra_args
List of extra arguments passed to the Tor instance when started.
#### data_directory
==Recommended==
The data directory of Tor.
Each start will be very slow if not specified.
#### torrc
Map of torrc options.
2022-08-31 05:21:29 +00:00
See [tor(1)](https://linux.die.net/man/1/tor) for details.
2022-08-20 16:59:49 +00:00
### Dial Fields
2022-08-31 05:21:29 +00:00
See [Dial Fields](/configuration/shared/dial) for details.