From 2f89d247f03fb0187103fa32843b796bbe123804 Mon Sep 17 00:00:00 2001 From: Mattias Appelgren Date: Tue, 5 Dec 2023 14:59:24 +0100 Subject: [PATCH] fix matcher: ignorecase-ed25519 --- pkg/matcher/ignorecase_ed25519.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/matcher/ignorecase_ed25519.go b/pkg/matcher/ignorecase_ed25519.go index 239c81d..edc77a9 100644 --- a/pkg/matcher/ignorecase_ed25519.go +++ b/pkg/matcher/ignorecase_ed25519.go @@ -27,5 +27,5 @@ func (m *ignorecaseEd25519Matcher) SetMatchString(matchString string) { func (m *ignorecaseEd25519Matcher) Match(s keygen.SSHKey) bool { pubK := s.SSHPubkey() - return strings.Contains(strings.ToLower(string(pubK[:37])), m.matchString) + return strings.Contains(strings.ToLower(string(pubK[37:])), m.matchString) }