diff options
Diffstat (limited to 'ssh/client_auth_test.go')
| -rw-r--r-- | ssh/client_auth_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ssh/client_auth_test.go b/ssh/client_auth_test.go index 8d1767c..e398c40 100644 --- a/ssh/client_auth_test.go +++ b/ssh/client_auth_test.go @@ -14,6 +14,7 @@ import ( "net" "os" "runtime" + "slices" "strings" "testing" ) @@ -1214,7 +1215,7 @@ func (cb configurablePublicKeyCallback) auth(session []byte, user string, c pack if err != nil { return authFailure, nil, err } - if success == authSuccess || !contains(methods, cb.method()) { + if success == authSuccess || !slices.Contains(methods, cb.method()) { return success, methods, err } |
