aboutsummaryrefslogtreecommitdiff
path: root/ssh_server.go
diff options
context:
space:
mode:
Diffstat (limited to 'ssh_server.go')
-rw-r--r--ssh_server.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssh_server.go b/ssh_server.go
index 58a5acd..56ed501 100644
--- a/ssh_server.go
+++ b/ssh_server.go
@@ -79,13 +79,13 @@ func serveSSH(listener net.Listener) error {
return
}
},
- PublicKeyHandler: func(ctx gliderSSH.Context, key gliderSSH.PublicKey) bool { return true },
- KeyboardInteractiveHandler: func(ctx gliderSSH.Context, challenge goSSH.KeyboardInteractiveChallenge) bool { return true },
+ PublicKeyHandler: func(_ gliderSSH.Context, _ gliderSSH.PublicKey) bool { return true },
+ KeyboardInteractiveHandler: func(_ gliderSSH.Context, _ goSSH.KeyboardInteractiveChallenge) bool { return true },
// It is intentional that we do not check any credentials and accept all connections.
// This allows all users to connect and clone repositories. However, the public key
// is passed to handlers, so e.g. the push handler could check the key and reject the
// push if it needs to.
- }
+ } //exhaustruct:ignore
server.AddHostKey(hostKey)