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:
parent
b08073c2d4
commit
4b992cbd89
|
@ -0,0 +1,2 @@
|
|||
MODIFIED: New LocalProtocolFailed ErrorKind.
|
||||
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue