New ErrorKind::LocalProtocolFailed.

This type is by analogy to `RemoteProtocolFailed`; we'll use it for
cases when the Socks proxy refuses to talk to us.
This commit is contained in:
Nick Mathewson 2022-09-27 12:25:00 -04:00
parent b08073c2d4
commit 4b992cbd89
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,2 @@
MODIFIED: New LocalProtocolFailed ErrorKind.

View File

@ -339,6 +339,13 @@ pub enum ErrorKind {
#[display(fmt = "problem with network or connection")]
LocalNetworkError,
/// A problem occurred with a protocol to a local (not anonymized) party.
///
/// This is likely a protocol-specific problem, such as bad authentication
/// over SOCKS.
#[display(fmt = "local authentication refused.")]
LocalProtocolFailed,
/// A relay had an identity other than the one we expected.
///
/// This could indicate a MITM attack, but more likely indicates that the