Commit 0f3bcadc authored by Tails developers's avatar Tails developers

Add tor_control_getconf() in shell library.

parent 4ba5cfa6
......@@ -25,6 +25,11 @@ tor_control_getinfo() {
sed "s|^250-${1}=\(.*\)[[:space:]]\+$|\1|"
}
tor_control_getconf() {
tor_control_send "GETCONF ${1}" | \
sed -n "s/^250 ${1}=\(.*\)$/\1/p"
}
tor_control_setconf() {
tor_control_send "SETCONF ${1}" >/dev/null
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment