diff --git a/server/proxy/http.go b/server/proxy/http.go index b76fe67..1dde20e 100644 --- a/server/proxy/http.go +++ b/server/proxy/http.go @@ -51,6 +51,10 @@ func (pxy *HttpProxy) Run() (remoteAddr string, err error) { addrs := make([]string, 0) for _, domain := range pxy.cfg.CustomDomains { + if domain == "" { + continue + } + routeConfig.Domain = domain for _, location := range locations { routeConfig.Location = location diff --git a/server/proxy/https.go b/server/proxy/https.go index a35af23..888fcbe 100644 --- a/server/proxy/https.go +++ b/server/proxy/https.go @@ -33,6 +33,10 @@ func (pxy *HttpsProxy) Run() (remoteAddr string, err error) { addrs := make([]string, 0) for _, domain := range pxy.cfg.CustomDomains { + if domain == "" { + continue + } + routeConfig.Domain = domain l, errRet := pxy.rc.VhostHttpsMuxer.Listen(routeConfig) if errRet != nil {