(section *ini.Section)
| 417 | } |
| 418 | |
| 419 | func 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 | |
| 437 | func parseHTTPConfig(section *ini.Section) (RoutineSpawner, error) { |
| 438 | config := &HTTPConfig{} |
nothing calls this directly
no test coverage detected