mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-07 14:46:44 +00:00
Add comments to Tor discovery errors.
This commit is contained in:
parent
3172e84bb3
commit
b5a7d52f21
10
discovery.go
10
discovery.go
@ -23,8 +23,16 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
// ErrTorInvalidAddressResponse indicates an invalid address was
|
||||||
|
// returned by the Tor DNS resolver.
|
||||||
ErrTorInvalidAddressResponse = errors.New("invalid address response")
|
ErrTorInvalidAddressResponse = errors.New("invalid address response")
|
||||||
ErrTorInvalidProxyResponse = errors.New("invalid proxy response")
|
|
||||||
|
// ErrTorInvalidProxyResponse indicates the Tor proxy returned a
|
||||||
|
// response in an unexpected format.
|
||||||
|
ErrTorInvalidProxyResponse = errors.New("invalid proxy response")
|
||||||
|
|
||||||
|
// ErrTorUnrecognizedAuthMethod indicates the authentication method
|
||||||
|
// provided is not recognized.
|
||||||
ErrTorUnrecognizedAuthMethod = errors.New("invalid proxy authentication method")
|
ErrTorUnrecognizedAuthMethod = errors.New("invalid proxy authentication method")
|
||||||
|
|
||||||
torStatusErrors = map[byte]error{
|
torStatusErrors = map[byte]error{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user