(err error)
| 290 | } |
| 291 | |
| 292 | func (rs *relayServer) sendError(err error) { |
| 293 | select { |
| 294 | case rs.errc <- err: |
| 295 | default: |
| 296 | // channel is blocked with a previous error, so we ignore this one |
| 297 | } |
| 298 | } |
| 299 | |
| 300 | func (rs *relayServer) ForwardPort(ctx context.Context, port uint16) error { |
| 301 | pfr := messages.NewPortForwardRequest("127.0.0.1", uint32(port)) |