From 2c995962edfb4ceff475eb5c7ed30c0a5bfbd87a Mon Sep 17 00:00:00 2001 From: Andy Wang Date: Sun, 7 Jun 2020 12:20:48 +0100 Subject: [PATCH] Fix spelling mistake --- internal/server/auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/server/auth.go b/internal/server/auth.go index c0c97c5..c1075ac 100644 --- a/internal/server/auth.go +++ b/internal/server/auth.go @@ -31,7 +31,7 @@ const ( ) var ErrTimestampOutOfWindow = errors.New("timestamp is outside of the accepting window") -var ErrUnreconisedProtocol = errors.New("unreconised protocol") +var ErrUnrecognisedProtocol = errors.New("unrecognised protocol") // decryptClientInfo checks if a the authFragments are valid. It doesn't check if the UID is authorised func decryptClientInfo(fragments authFragments, serverTime time.Time) (info ClientInfo, err error) { @@ -74,7 +74,7 @@ func AuthFirstPacket(firstPacket []byte, sta *State) (info ClientInfo, finisher case 0x16: transport = &TLS{} default: - err = ErrUnreconisedProtocol + err = ErrUnrecognisedProtocol return }