summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-12-19 19:48:58 +0000
committerNick Mathewson <nickm@torproject.org>2006-12-19 19:48:58 +0000
commitbf6702cf8b8f251356b72a8276fefbdeb6eca453 (patch)
tree196b03caa491e058c4fc7d6b3b8dc6be36420d6c /src/or/config.c
parent1ce86f1fca841b5c214bc0762507c38f04e4ab8f (diff)
downloadtor-bf6702cf8b8f251356b72a8276fefbdeb6eca453.tar.gz
tor-bf6702cf8b8f251356b72a8276fefbdeb6eca453.zip
r11645@Kushana: nickm | 2006-12-19 14:22:36 -0500
Reject hostnames with invalid characters, in an attempt to catch more errors earlier. Add an option to disable this behavior. svn:r9156
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 6ac612035a..7931a9790d 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -127,6 +127,7 @@ static config_var_t _option_vars[] = {
VAR("__AllDirActionsPrivate",BOOL, AllDirActionsPrivate, "0"),
VAR("AllowInvalidNodes", CSV, AllowInvalidNodes,
"middle,rendezvous"),
+ VAR("AllowNonRFC953Hostnames", BOOL, AllowNonRFC953Hostnames, "0"),
VAR("AssumeReachable", BOOL, AssumeReachable, "0"),
VAR("AuthDirBadExit", LINELIST, AuthDirBadExit, NULL),
VAR("AuthDirInvalid", LINELIST, AuthDirInvalid, NULL),
@@ -354,6 +355,8 @@ static config_var_description_t options_description[] = {
/* ==== client options */
{ "AllowInvalidNodes", "Where on our circuits should Tor allow servers "
"that the directory authorities haven't called \"valid\"?" },
+ { "AllowNonRFC953Hostnames", "If set to 1, we don't automatically reject "
+ "hostnames for having invalid characters." },
/* CircuitBuildTimeout, CircuitIdleTimeout */
{ "ClientOnly", "If set to 1, Tor will under no circumstances run as a "
"server, even if ORPort is as configued." },