mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-10 02:53:12 +00:00
52 lines
797 B
Markdown
52 lines
797 B
Markdown
### Structure
|
|
|
|
```json
|
|
{
|
|
"type": "tor",
|
|
"tag": "tor-out",
|
|
|
|
"executable_path": "/usr/bin/tor",
|
|
"extra_args": [],
|
|
"data_directory": "$HOME/.cache/tor",
|
|
"torrc": {
|
|
"ClientOnly": 1
|
|
},
|
|
|
|
... // Dial Fields
|
|
}
|
|
```
|
|
|
|
!!! info ""
|
|
|
|
Embedded tor is not included by default, see [Installation](/#installation).
|
|
|
|
### Fields
|
|
|
|
#### 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.
|
|
|
|
See [tor(1)](https://linux.die.net/man/1/tor) for details.
|
|
|
|
### Dial Fields
|
|
|
|
See [Dial Fields](/configuration/shared/dial) for details.
|