Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
juga
sbws
Commits
f6e300c8
Commit
f6e300c8
authored
Dec 16, 2020
by
juga
Browse files
chg: config: Add option to connect to external tor
via control port.
parent
713d4004
Changes
3
Hide whitespace changes
Inline
Side-by-side
docs/source/man_sbws.ini.rst
View file @
f6e300c8
...
...
@@ -93,6 +93,10 @@ tor
sbws's owned tor pid file. (Default: ~/.sbws/tor/sbws/tor.pid)
log = STR
sbws's owned tor directory log files. (Default: ~/.sbws/tor/log)
external_control_port = INT
tor control port to connect to. Useful to run integration tests with
chutney.
(Default: not set. If set, it takes preference over the control socket)
extra_lines =
sbws's tor extra configuration. (Default: None)
...
...
sbws/config.default.ini
View file @
f6e300c8
...
...
@@ -66,6 +66,7 @@ control_socket = ${tor:run_dpath}/control
pid
=
${tor:run_dpath}/tor.pid
# note this is a directory
log
=
${tor:datadir}/log
external_control_port
=
extra_lines
=
[cleanup]
...
...
sbws/util/config.py
View file @
f6e300c8
...
...
@@ -323,7 +323,9 @@ def _validate_tor(conf):
sec
=
'tor'
err_tmpl
=
Template
(
'$sec/$key ($val): $e'
)
unvalidated_keys
=
[
'datadir'
,
'run_dpath'
,
'control_socket'
,
'pid'
,
'log'
,
'extra_lines'
]
'datadir'
,
'run_dpath'
,
'control_socket'
,
'pid'
,
'log'
,
'external_control_port'
,
'extra_lines'
,
]
all_valid_keys
=
unvalidated_keys
errors
.
extend
(
_validate_section_keys
(
conf
,
sec
,
all_valid_keys
,
err_tmpl
))
return
errors
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment