parseconf: Add an authority IPv6 ORPort test

These tests don't actually exercise the authority IPv6 ORPort
self-add feature in 32822, but they do improve coverage of the
related config code.

Part of 32822.
This commit is contained in:
teor
2020-01-15 21:20:57 +10:00
committed by David Goulet
parent 1f58b0ca26
commit 82010b0e2e
5 changed files with 25 additions and 0 deletions
@@ -0,0 +1 @@
This tor was built with dirauth mode disabled.
@@ -0,0 +1 @@
This tor was built with dirauth mode disabled.
@@ -0,0 +1,9 @@
Address 192.0.2.1
AuthoritativeDirectory 1
ContactInfo tor_parse_test@example.net
DirPort 192.0.2.1:2
DownloadExtraInfo 1
Nickname Unnamed
ORPort 192.0.2.1:1
ORPort [2001:DB8::1]:3
V3AuthoritativeDirectory 1
@@ -0,0 +1 @@
Read configuration file .*dirauth_3[./]*torrc
+13
View File
@@ -0,0 +1,13 @@
# Authority with IPv6 address
AuthoritativeDirectory 1
V3AuthoritativeDirectory 1
ContactInfo tor_parse_test@example.net
Address 192.0.2.1
ORPort 192.0.2.1:1
DirPort 192.0.2.1:2
ORPort [2001:DB8::1]:3