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