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

Function parseTCPServerTunnelConfig

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

Source from the content-addressed store, hash-verified

399}
400
401func parseTCPServerTunnelConfig(section *ini.Section) (RoutineSpawner, error) {
402 config := &TCPServerTunnelConfig{}
403
404 listenPort, err := parsePort(section, "ListenPort")
405 if err != nil {
406 return nil, err
407 }
408 config.ListenPort = listenPort
409
410 target, err := parseString(section, "Target")
411 if err != nil {
412 return nil, err
413 }
414 config.Target = target
415
416 return config, nil
417}
418
419func parseSocks5Config(section *ini.Section) (RoutineSpawner, error) {
420 config := &Socks5Config{}

Callers

nothing calls this directly

Calls 2

parsePortFunction · 0.85
parseStringFunction · 0.85

Tested by

no test coverage detected