mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-27 12:05:26 +00:00
fixed typo in ErrCannotDecryptResponse name
This commit is contained in:
parent
911e6ba6de
commit
cc1343d31d
4
utils.go
4
utils.go
@ -27,7 +27,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
ErrCannotDecryptReponse = Error("cannot decrypt response")
|
ErrCannotDecryptResponse = Error("cannot decrypt response")
|
||||||
ErrCouldNotAllocateIP = Error("could not find any suitable IP")
|
ErrCouldNotAllocateIP = Error("could not find any suitable IP")
|
||||||
|
|
||||||
// These constants are copied from the upstream tailscale.com/types/key
|
// These constants are copied from the upstream tailscale.com/types/key
|
||||||
@ -120,7 +120,7 @@ func decode(
|
|||||||
|
|
||||||
decrypted, ok := privKey.OpenFrom(*pubKey, msg)
|
decrypted, ok := privKey.OpenFrom(*pubKey, msg)
|
||||||
if !ok {
|
if !ok {
|
||||||
return ErrCannotDecryptReponse
|
return ErrCannotDecryptResponse
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := json.Unmarshal(decrypted, output); err != nil {
|
if err := json.Unmarshal(decrypted, output); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user