Merge pull request #39 from fatedier/release0.7

add support for https
This commit is contained in:
fatedier
2016-06-24 14:09:50 +08:00
committed by GitHub
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