mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Add test for +Option, /Option, and Option
Here we use these directives to replace, extend, or clear values in torrc.defaults and in torrc.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
ORPort 1000
|
||||
@@ -0,0 +1,2 @@
|
||||
Nickname Unnamed
|
||||
ORPort 1000
|
||||
@@ -0,0 +1,3 @@
|
||||
# We'll replace this option on the command line.
|
||||
|
||||
ORPort 9999
|
||||
@@ -0,0 +1 @@
|
||||
/ORPort
|
||||
@@ -0,0 +1,3 @@
|
||||
# We'll remove this option on the command line, and not replace it.
|
||||
|
||||
ORPort 9999
|
||||
@@ -0,0 +1 @@
|
||||
+ORPort 1000
|
||||
@@ -0,0 +1,3 @@
|
||||
Nickname Unnamed
|
||||
ORPort 9999
|
||||
ORPort 1000
|
||||
@@ -0,0 +1,3 @@
|
||||
# We will extend this option on the command line
|
||||
|
||||
ORPort 9999
|
||||
@@ -0,0 +1,2 @@
|
||||
Nickname Unnamed
|
||||
ORPort 9099
|
||||
@@ -0,0 +1,3 @@
|
||||
# This value is unadorned, so replaces the one from defaults.torrc.
|
||||
|
||||
ORPort 9099
|
||||
@@ -0,0 +1 @@
|
||||
ORPort 9000
|
||||
@@ -0,0 +1,3 @@
|
||||
Nickname Unnamed
|
||||
ORPort 9000
|
||||
ORPort 9099
|
||||
@@ -0,0 +1,3 @@
|
||||
# This value has a plus, and so extends the one from defaults.torrc.
|
||||
|
||||
+ORPort 9099
|
||||
@@ -0,0 +1 @@
|
||||
ORPort 9000
|
||||
@@ -0,0 +1,3 @@
|
||||
# This value has a slash, and so clears the one from defaults.torrc.
|
||||
|
||||
/ORPort
|
||||
@@ -0,0 +1 @@
|
||||
ORPort 9000
|
||||
Reference in New Issue
Block a user