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