summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-01-11 16:02:39 +0000
committerNick Mathewson <nickm@torproject.org>2007-01-11 16:02:39 +0000
commitc1b5f53679af75a98b46f4dc7dc0f356de8ddb73 (patch)
treef95a49ccd92e7d104f4e764c0a5c41a8d5dbb68a /src/or/config.c
parent3dfeaaaf6ef977bb833672c6cce15aa71838aae0 (diff)
downloadtor-c1b5f53679af75a98b46f4dc7dc0f356de8ddb73.tar.gz
tor-c1b5f53679af75a98b46f4dc7dc0f356de8ddb73.zip
r11938@Kushana: nickm | 2007-01-11 11:02:28 -0500
Check addresses for rfc953-saneness at exit too, and give a PROTOCOL_WARN when they fail. Also provide a mechanism to override this, so blossom can have its @@##$$^.whatever.exit hostnames if it wants. svn:r9336
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 2378aa2946..70b981bd76 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -230,6 +230,8 @@ static config_var_t _option_vars[] = {
VAR("RunTesting", BOOL, RunTesting, "0"),
VAR("SafeLogging", BOOL, SafeLogging, "1"),
VAR("SafeSocks", BOOL, SafeSocks, "0"),
+ VAR("ServerDNSAllowNonRFC953Hostnames", BOOL,
+ ServerDNSAllowNonRFC953Hostnames, "0"),
VAR("ServerDNSDetectHijacking",BOOL, ServerDNSDetectHijacking,"1"),
VAR("ServerDNSResolvConfFile", STRING, ServerDNSResolvConfFile, NULL),
VAR("ServerDNSSearchDomains", BOOL, ServerDNSSearchDomains, "0"),
@@ -3116,7 +3118,7 @@ config_register_addressmaps(or_options_t *options)
if (smartlist_len(elts) >= 2) {
from = smartlist_get(elts,0);
to = smartlist_get(elts,1);
- if (address_is_invalid_destination(to)) {
+ if (address_is_invalid_destination(to, 1)) {
log_warn(LD_CONFIG,
"Skipping invalid argument '%s' to MapAddress", to);
} else {