mirror of
https://github.com/whyvl/wireproxy.git
synced 2025-04-29 19:01:42 +02:00
Merge 6bd3c74434
into 9dad356bee
This commit is contained in:
commit
988155602b
5 changed files with 35 additions and 20 deletions
|
@ -57,6 +57,8 @@ type HTTPConfig struct {
|
|||
BindAddress string
|
||||
Username string
|
||||
Password string
|
||||
CertFile string
|
||||
KeyFile string
|
||||
}
|
||||
|
||||
type Configuration struct {
|
||||
|
@ -432,6 +434,12 @@ func parseHTTPConfig(section *ini.Section) (RoutineSpawner, error) {
|
|||
password, _ := parseString(section, "Password")
|
||||
config.Password = password
|
||||
|
||||
certFile, _ := parseString(section, "CertFile")
|
||||
config.CertFile = certFile
|
||||
|
||||
keyFile, _ := parseString(section, "KeyFile")
|
||||
config.KeyFile = keyFile
|
||||
|
||||
return config, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue