Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
George Kadianakis
Tor
Commits
8b026b4e
Commit
8b026b4e
authored
Jul 07, 2021
by
George Kadianakis
Browse files
Merge remote-tracking branch 'tor-gitlab/mr/406' into maint-0.4.6
parents
a522aabd
301ffb71
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/ticket40421
0 → 100644
View file @
8b026b4e
o Minor bugfixes (onion service):
- Send back the extended SOCKS error 0xF6 for a v2 onion address. Fixes bug
40421; bugfix on 0.4.6.2-alpha.
src/core/or/connection_edge.c
View file @
8b026b4e
...
...
@@ -2536,6 +2536,10 @@ connection_ap_handshake_rewrite_and_attach(entry_connection_t *conn,
"https://blog.torproject.org/v2-deprecation-timeline."
);
control_event_client_status
(
LOG_WARN
,
"SOCKS_BAD_HOSTNAME HOSTNAME=%s"
,
escaped
(
socks
->
address
));
/* Send back the 0xF6 extended code indicating a bad hostname. This is
* mostly so Tor Browser can make a proper UX with regards to v2
* addresses. */
conn
->
socks_request
->
socks_extended_error_code
=
SOCKS5_HS_BAD_ADDRESS
;
connection_mark_unattached_ap
(
conn
,
END_STREAM_REASON_TORPROTOCOL
);
return
-
1
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment