torproject / tor Public
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tor Trac #28127]: Hidden service option HiddenServiceAuthorizeClient is incompatible with version 3 #435
Conversation
…nless we have set HiddenServiceVersion
Pull Request Test Coverage Report for Build 2622
|
| * present and we did not set HiddenServiceVersion. Depending on the key | ||
| * format, we can figure out the service version. */ | ||
| if (!service->config.hs_version_explicitly_set) | ||
| service->config.version = config_learn_service_version(service); |
We try to always put the {} even if this pattern is everywhere in the code base.
src/feature/hs/hs_config.c
Outdated
| @@ -577,16 +581,20 @@ config_service(const config_line_t *line, const or_options_t *options, | |||
| tor_assert_nonfatal_unreached(); | |||
| goto err; | |||
| } | |||
|
|
|||
Lets not remove this whitespace. The reason is that the if(ret < 0) being glued to the switch condition is to reflect that they are linked together and that adding anything in between is probably a bad idea.
src/feature/hs/hs_service.h
Outdated
| @@ -220,6 +220,9 @@ typedef struct hs_service_config_t { | |||
| /* Is this service ephemeral? */ | |||
| unsigned int is_ephemeral : 1; | |||
|
|
|||
| /* Have we explicitly set HiddenServiceVersion? */ | |||
| unsigned int hs_version_explicitly_set : 1; | |||
|
|
|||
Super nitpick here: Can you put that next to the version so we have the parameters from the same context next to each other?
For the bug here.
The text was updated successfully, but these errors were encountered: