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

Method RemoteAddr

context.go:156–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154}
155
156func (ctx *sshContext) RemoteAddr() net.Addr {
157 if addr, ok := ctx.Value(ContextKeyRemoteAddr).(net.Addr); ok {
158 return addr
159 }
160 return nil
161}
162
163func (ctx *sshContext) LocalAddr() net.Addr {
164 return ctx.Value(ContextKeyLocalAddr).(net.Addr)

Callers

nothing calls this directly

Calls 1

ValueMethod · 0.95

Tested by

no test coverage detected