SpawnRoutine connects to the specified target and plumbs it to STDIN / STDOUT
(vt *VirtualTun)
| 281 | |
| 282 | // SpawnRoutine connects to the specified target and plumbs it to STDIN / STDOUT |
| 283 | func (conf *STDIOTunnelConfig) SpawnRoutine(vt *VirtualTun) { |
| 284 | raddr, err := parseAddressPort(conf.Target) |
| 285 | if err != nil { |
| 286 | log.Fatal(err) |
| 287 | } |
| 288 | |
| 289 | go STDIOTcpForward(vt, raddr, conf.Input, conf.Output) |
| 290 | } |
| 291 | |
| 292 | // tcpServerForward starts a new connection locally and forward traffic from `conn` |
| 293 | func tcpServerForward(vt *VirtualTun, raddr *addressPort, conn net.Conn) { |
nothing calls this directly
no test coverage detected