mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Support 'none' in torrc for HiddenServiceExportCircuitID.
See: https://bugs.torproject.org/4700
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user