mirror of
https://github.com/whyvl/wireproxy.git
synced 2025-04-29 19:01:42 +02:00
Add support for HTTPS
This commit is contained in:
parent
cb1f39b3e5
commit
a21bd62350
4 changed files with 32 additions and 1 deletions
|
@ -57,6 +57,8 @@ type HTTPConfig struct {
|
|||
BindAddress string
|
||||
Username string
|
||||
Password string
|
||||
CertFile string
|
||||
KeyFile string
|
||||
}
|
||||
|
||||
type Configuration struct {
|
||||
|
@ -431,6 +433,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