diff options
Diffstat (limited to 'internal/sshd/sshd.go')
-rw-r--r-- | internal/sshd/sshd.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/sshd/sshd.go b/internal/sshd/sshd.go index d927268..a0c4d0e 100644 --- a/internal/sshd/sshd.go +++ b/internal/sshd/sshd.go @@ -171,6 +171,7 @@ 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{ @@ -178,6 +179,7 @@ func (s *Server) handleConn(ctx context.Context, nconn net.Conn) { channel: channel, gitlabKeyId: sconn.Permissions.Extensions["key-id"], remoteAddr: remoteAddr, + started: started, } return session.handle(ctx, requests) |