(localPortForwardSpecs []LocalPortForward)
| 208 | } |
| 209 | |
| 210 | func (c *SecureShell) LocalPortForward(localPortForwardSpecs []LocalPortForward) error { |
| 211 | for _, spec := range localPortForwardSpecs { |
| 212 | listener, err := c.listenerFactory.Listen("tcp", spec.LocalAddress) |
| 213 | if err != nil { |
| 214 | return err |
| 215 | } |
| 216 | c.localListeners = append(c.localListeners, listener) |
| 217 | |
| 218 | go c.localForwardAcceptLoop(listener, spec.RemoteAddress) |
| 219 | } |
| 220 | |
| 221 | return nil |
| 222 | } |
| 223 | |
| 224 | func (c *SecureShell) Wait() error { |
| 225 | keepaliveStopCh := make(chan struct{}) |
nothing calls this directly
no test coverage detected