aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDaniel Pinto <danielpinto52@gmail.com>2017-05-18 23:44:16 +0100
committerDaniel Pinto <danielpinto52@gmail.com>2017-05-18 23:44:16 +0100
commitba3a5f82f11388237a3ba4995ddf0b6ffaaf492a (patch)
treec0cf4342524cd040e24fe9cc420bb70e21c0a9d5 /doc
parentec6b2bbf9bb561e34f9fbe6663d1eb691604348d (diff)
downloadtor-ba3a5f82f11388237a3ba4995ddf0b6ffaaf492a.tar.gz
tor-ba3a5f82f11388237a3ba4995ddf0b6ffaaf492a.zip
Add support for %include funcionality on torrc #1922
config_get_lines is now split into two functions: - config_get_lines which is the same as before we had %include - config_get_lines_include which actually processes %include
Diffstat (limited to 'doc')
-rw-r--r--doc/tor.1.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/tor.1.txt b/doc/tor.1.txt
index 0af4e5f161..5e0a71ca26 100644
--- a/doc/tor.1.txt
+++ b/doc/tor.1.txt
@@ -153,6 +153,13 @@ values. To split one configuration entry into multiple lines, use a single
backslash character (\) before the end of the line. Comments can be used in
such multiline entries, but they must start at the beginning of a line.
+Configuration options can be imported from files or folders using the %include
+option with the value being a path. If the path is a file, the options from the
+file will be parsed as if they were written where the %include option is. If
+the path is a folder, all files on that folder will be parsed following lexical
+order. Files starting with a dot are ignored. Files on subfolders are ignored.
+The %include option can be used recursively.
+
By default, an option on the command line overrides an option found in the
configuration file, and an option in a configuration file overrides one in
the defaults file.