-
Notifications
You must be signed in to change notification settings - Fork 940
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
hs-v2: Add deprecation warning for service #1962
base: maint-0.3.5
Are you sure you want to change the base?
hs-v2: Add deprecation warning for service #1962
Conversation
If at least one service is configured as a version 2, a log warning is emitted once and only once. Closes #40003 Signed-off-by: David Goulet <[email protected]>
Pull Request Test Coverage Report for Build 9360
💛 - Coveralls |
src/feature/rend/rendservice.c
Outdated
@@ -731,6 +747,9 @@ rend_config_service(const config_line_t *line_, | |||
tor_assert(options); | |||
tor_assert(config); | |||
|
|||
/* We are about to configured a version 2 service. Warn of deprecation. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/configured/configure/g
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixup pushed!
log_warn(LD_REND, "DEPRECATED: Onion service version 2 are deprecated. " | ||
"Please use version 3 which is the default now. " | ||
"Currently, version 2 is planned to be obsolete in " | ||
"the Tor version 0.4.6 stable series."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think we should link to the tor-dev post or the blog post here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, maybe not ideal to have links hardcoded in our tor codebase as in the link then has to be a super long permalink...
If at least one service is configured as a version 2, a log warning is emitted
once and only once.
Closes #40003
Signed-off-by: David Goulet [email protected]