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

52 lines
797 B
Markdown
Raw Normal View History

2022-08-21 00:59:49 +08:00
### Structure
```json
{
2022-08-31 13:21:29 +08: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-21 00:59:49 +08:00
}
```
!!! info ""
2022-08-23 23:15:56 +08:00
Embedded tor is not included by default, see [Installation](/#installation).
2022-08-21 00:59:49 +08:00
2022-08-31 13:21:29 +08:00
### Fields
2022-08-21 00:59:49 +08: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 13:21:29 +08:00
See [tor(1)](https://linux.die.net/man/1/tor) for details.
2022-08-21 00:59:49 +08:00
### Dial Fields
2022-08-31 13:21:29 +08:00
See [Dial Fields](/configuration/shared/dial) for details.