sing-box/docs/configuration/outbound/tor.md
2024-01-03 12:21:37 +08:00

827 B

Structure

{
  "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/build-from-source/#build-tags).

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) for details.

Dial Fields

See Dial Fields for details.