summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/sshd/sshd.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/sshd/sshd.go b/internal/sshd/sshd.go
index a0c4d0e..43c4d7b 100644
--- a/internal/sshd/sshd.go
+++ b/internal/sshd/sshd.go
@@ -171,7 +171,6 @@ func (s *Server) handleConn(ctx context.Context, nconn net.Conn) {
}
}()
- started := time.Now()
conn := newConnection(s.Config, nconn)
conn.handle(ctx, s.serverConfig.get(ctx), func(sconn *ssh.ServerConn, channel ssh.Channel, requests <-chan *ssh.Request) error {
session := &session{
@@ -179,7 +178,7 @@ func (s *Server) handleConn(ctx context.Context, nconn net.Conn) {
channel: channel,
gitlabKeyId: sconn.Permissions.Extensions["key-id"],
remoteAddr: remoteAddr,
- started: started,
+ started: time.Now(),
}
return session.handle(ctx, requests)