(section *ini.Section)
| 369 | } |
| 370 | |
| 371 | func parseTCPClientTunnelConfig(section *ini.Section) (RoutineSpawner, error) { |
| 372 | config := &TCPClientTunnelConfig{} |
| 373 | tcpAddr, err := parseTCPAddr(section, "BindAddress") |
| 374 | if err != nil { |
| 375 | return nil, err |
| 376 | } |
| 377 | config.BindAddress = tcpAddr |
| 378 | |
| 379 | targetSection, err := parseString(section, "Target") |
| 380 | if err != nil { |
| 381 | return nil, err |
| 382 | } |
| 383 | config.Target = targetSection |
| 384 | |
| 385 | return config, nil |
| 386 | } |
| 387 | |
| 388 | func parseSTDIOTunnelConfig(section *ini.Section) (RoutineSpawner, error) { |
| 389 | config := &STDIOTunnelConfig{} |
nothing calls this directly
no test coverage detected