Fix spelling mistake

This commit is contained in:
Andy Wang 2020-06-07 12:20:48 +01:00
parent ff10cbf67b
commit 2c995962ed
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ const (
) )
var ErrTimestampOutOfWindow = errors.New("timestamp is outside of the accepting window") 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 // 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) { 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: case 0x16:
transport = &TLS{} transport = &TLS{}
default: default:
err = ErrUnreconisedProtocol err = ErrUnrecognisedProtocol
return return
} }