MCPcopy
hub / github.com/windtf/wireproxy / parseSocks5Config

Function parseSocks5Config

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

Source from the content-addressed store, hash-verified

417}
418
419func parseSocks5Config(section *ini.Section) (RoutineSpawner, error) {
420 config := &Socks5Config{}
421
422 bindAddress, err := parseString(section, "BindAddress")
423 if err != nil {
424 return nil, err
425 }
426 config.BindAddress = bindAddress
427
428 username, _ := parseString(section, "Username")
429 config.Username = username
430
431 password, _ := parseString(section, "Password")
432 config.Password = password
433
434 return config, nil
435}
436
437func parseHTTPConfig(section *ini.Section) (RoutineSpawner, error) {
438 config := &HTTPConfig{}

Callers

nothing calls this directly

Calls 1

parseStringFunction · 0.85

Tested by

no test coverage detected