Skip to content

Commit 7d4ccce

Browse files
committed
x11HostnameError
1 parent 9b0e31a commit 7d4ccce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

agent/agentssh/x11.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ func (s *Server) x11Callback(ctx ssh.Context, x11 ssh.X11) bool {
2929
hostname, err := os.Hostname()
3030
if err != nil {
3131
s.logger.Warn(ctx, "failed to get hostname", slog.Error(err))
32+
s.metrics.x11HostnameError.Add(1)
3233
return false
3334
}
3435

0 commit comments

Comments
 (0)