AgentRequested returns true if the client requested agent forwarding.
(sess Session)
| 30 | |
| 31 | // AgentRequested returns true if the client requested agent forwarding. |
| 32 | func 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. |