MCPcopy Index your code
hub / github.com/windtf/wireproxy / parseTCPClientTunnelConfig

Function parseTCPClientTunnelConfig

config.go:371–386  ·  view source on GitHub ↗
(section *ini.Section)

Source from the content-addressed store, hash-verified

369}
370
371func 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
388func parseSTDIOTunnelConfig(section *ini.Section) (RoutineSpawner, error) {
389 config := &STDIOTunnelConfig{}

Callers

nothing calls this directly

Calls 2

parseTCPAddrFunction · 0.85
parseStringFunction · 0.85

Tested by

no test coverage detected