From 7a6f71ac73b41a38e9982bea3d46a87c327bd77a Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 22 Mar 2025 13:17:55 +0800 Subject: Initial linting --- ssh_server.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ssh_server.go') 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) -- cgit v1.2.3