summaryrefslogtreecommitdiff
path: root/src/feature/hs
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2018-09-20 20:59:42 +0200
committerAlexander Færøy <ahf@torproject.org>2018-09-20 20:59:42 +0200
commit8ecaf41003cc5b513cf26c4ae176d5043f5a6a93 (patch)
treef92ed331e7dace0f534180df975b8e0d7e50e031 /src/feature/hs
parent3477a73af99eb72f8374928fdc2fab4858485219 (diff)
downloadtor-8ecaf41003cc5b513cf26c4ae176d5043f5a6a93.tar.gz
tor-8ecaf41003cc5b513cf26c4ae176d5043f5a6a93.zip
Support 'none' in torrc for HiddenServiceExportCircuitID.
See: https://bugs.torproject.org/4700
Diffstat (limited to 'src/feature/hs')
-rw-r--r--src/feature/hs/hs_config.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/feature/hs/hs_config.c b/src/feature/hs/hs_config.c
index 2378a4d3b2..93d7403dfb 100644
--- a/src/feature/hs/hs_config.c
+++ b/src/feature/hs/hs_config.c
@@ -161,8 +161,11 @@ helper_parse_circuit_id_protocol(const char *key, const char *value, int *ok)
if (! strcasecmp(value, "haproxy")) {
*ok = 1;
ret = HS_CIRCUIT_ID_PROTOCOL_HAPROXY;
+ } else if (! strcasecmp(value, "none")) {
+ *ok = 1;
+ ret = HS_CIRCUIT_ID_PROTOCOL_NONE;
} else {
- log_warn(LD_CONFIG, "%s must be 'haproxy'.", key);
+ log_warn(LD_CONFIG, "%s must be 'haproxy' or 'none'.", key);
goto err;
}