This commit is contained in:
fatedier committed 2018-08-08 11:18:38 +08:00
1 parent 6e305db4be
commit ca88b07ecf
5 files changed
+38 -27

No files matched your search

+3 -1
View File
@@ -139,7 +139,9 @@ func NewService() (svr *Service, err error) {
// Create http vhost muxer.
if cfg.VhostHttpPort > 0 {
rp := vhost.NewHttpReverseProxy()
rp := vhost.NewHttpReverseProxy(vhost.HttpReverseProxyOptions{
ResponseHeaderTimeoutS: cfg.VhostHttpTimeout,
})
svr.httpReverseProxy = rp
address := fmt.Sprintf("%s:%d", cfg.ProxyBindAddr, cfg.VhostHttpPort)