add https proto for reverse proxy

This commit is contained in:
Maodanping
2016-06-13 22:19:24 +08:00
parent 740fb05b21
commit f3876d69bb
6 changed files with 272 additions and 6 deletions

View File

@@ -115,7 +115,7 @@ func LoadConf(confFile string) (err error) {
proxyClient.Type = "tcp"
typeStr, ok := section["type"]
if ok {
if typeStr != "tcp" && typeStr != "http" {
if typeStr != "tcp" && typeStr != "http" && typeStr != "https" {
return fmt.Errorf("Parse ini file error: proxy [%s] type error", proxyClient.Name)
}
proxyClient.Type = typeStr