MCPcopy
hub / github.com/gliderlabs/ssh / AgentRequested

Function AgentRequested

agent.go:32–34  ·  view source on GitHub ↗

AgentRequested returns true if the client requested agent forwarding.

(sess Session)

Source from the content-addressed store, hash-verified

30
31// AgentRequested returns true if the client requested agent forwarding.
32func AgentRequested(sess Session) bool {
33 return sess.Context().Value(contextKeyAgentRequest) == true
34}
35
36// NewAgentListener sets up a temporary Unix socket that can be communicated
37// to the session environment and used for forwarding connections.

Callers 1

mainFunction · 0.92

Calls 2

ValueMethod · 0.80
ContextMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…