fix panic error when vhost_http_port is not set but there is a http

proxy, fix #776
This commit is contained in:
fatedier
2018-05-18 00:21:11 +08:00
parent 3726f99b04
commit ad1e32fd2d
2 changed files with 1 additions and 2 deletions

View File

@@ -49,7 +49,6 @@ func getHostFromAddr(addr string) (host string) {
type HttpReverseProxy struct {
proxy *ReverseProxy
tr *http.Transport
vhostRouter *VhostRouters