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

@@ -97,7 +97,15 @@ func (p *ProxyServer) Start(c *conn.Conn) (err error) {
p.listeners = append(p.listeners, l)
} else if p.Type == "http" {
for _, domain := range p.CustomDomains {
l, err := VhostMuxer.Listen(domain)
l, err := VhostHttpMuxer.Listen(domain)
if err != nil {
return err
}
p.listeners = append(p.listeners, l)
}
} else if p.Type == "https" {
for _, domain := range p.CustomDomains {
l, err := VhostHttpsMuxer.Listen(domain)
if err != nil {
return err
}