From 4fe4ff0154547337c1bf9a7eb42c723602ded051 Mon Sep 17 00:00:00 2001 From: mik2k2 <44849223+mik2k2@users.noreply.github.com> Date: Wed, 5 Jan 2022 11:02:41 +0100 Subject: [PATCH] not allowlisted -> not allowed --- auth.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/auth.go b/auth.go index ef02e7e..0cd5e0d 100644 --- a/auth.go +++ b/auth.go @@ -20,9 +20,9 @@ import ( // It must return a nil slice on error. type KeyLoader func() ([]ssh.PublicKey, error) -// ErrNotAllowlisted Is the error returned when a key is checked that is not allowlisted, +// ErrNotAllowed Is the error returned when a key is checked that is not allowlisted, // when allowlisting is enabled. -var ErrNotAllowlisted = errors.New("not allowlisted") +var ErrNotAllowed = errors.New("not allowed") // ErrBanned is the error returned when a client is banned. var ErrBanned = errors.New("banned") @@ -141,7 +141,7 @@ func (a *Auth) CheckPublicKey(key ssh.PublicKey) error { if a.AllowAnonymous() || allowlisted || a.IsOp(key) { return nil } else { - return ErrNotAllowlisted + return ErrNotAllowed } }