Skip to content

Commit 701fbbd

Browse files
committed
splellign
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 56ec015 commit 701fbbd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/ssh/ssh.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func sessionHandler(session ssh.Session) {
134134
}
135135

136136
func publicKeyHandler(ctx ssh.Context, key ssh.PublicKey) bool {
137-
if log.IsDebug() { // <- FingerprintSHA256 is kinda expensive so only calculate it if neccesary
137+
if log.IsDebug() { // <- FingerprintSHA256 is kinda expensive so only calculate it if necessary
138138
log.Debug("Handle Public Key: Fingerprint: %s from %s", gossh.FingerprintSHA256(key), ctx.RemoteAddr())
139139
}
140140

@@ -146,7 +146,7 @@ func publicKeyHandler(ctx ssh.Context, key ssh.PublicKey) bool {
146146

147147
// check if we have a certificate
148148
if cert, ok := key.(*gossh.Certificate); ok {
149-
if log.IsDebug() { // <- FingerprintSHA256 is kinda expensive so only calculate it if neccesary
149+
if log.IsDebug() { // <- FingerprintSHA256 is kinda expensive so only calculate it if necessary
150150
log.Debug("Handle Certificate: %s Fingerprint: %s is a certificate", ctx.RemoteAddr(), gossh.FingerprintSHA256(key))
151151
}
152152

@@ -200,7 +200,7 @@ func publicKeyHandler(ctx ssh.Context, key ssh.PublicKey) bool {
200200
return false
201201
}
202202

203-
if log.IsDebug() { // <- FingerprintSHA256 is kinda expensive so only calculate it if neccesary
203+
if log.IsDebug() { // <- FingerprintSHA256 is kinda expensive so only calculate it if necessary
204204
log.Debug("Successfully authenticated: %s Certificate Fingerprint: %s Principal: %s", ctx.RemoteAddr(), gossh.FingerprintSHA256(key), principal)
205205
}
206206
ctx.SetValue(giteaKeyID, pkey.ID)
@@ -232,7 +232,7 @@ func publicKeyHandler(ctx ssh.Context, key ssh.PublicKey) bool {
232232
return false
233233
}
234234

235-
if log.IsDebug() { // <- FingerprintSHA256 is kinda expensive so only calculate it if neccesary
235+
if log.IsDebug() { // <- FingerprintSHA256 is kinda expensive so only calculate it if necessary
236236
log.Debug("Successfully authenticated: %s Public Key Fingerprint: %s", ctx.RemoteAddr(), gossh.FingerprintSHA256(key))
237237
}
238238
ctx.SetValue(giteaKeyID, pkey.ID)

0 commit comments

Comments
 (0)