mirror of
https://github.com/fatedier/frp.git
synced 2025-01-19 12:28:15 +01:00
fix panic error when vhost_http_port is not set but there is a http
proxy, fix #776
This commit is contained in:
parent
3726f99b04
commit
ad1e32fd2d
@ -509,7 +509,7 @@ func (cfg *HttpProxyConf) CheckForCli() (err error) {
|
|||||||
|
|
||||||
func (cfg *HttpProxyConf) CheckForSvr() (err error) {
|
func (cfg *HttpProxyConf) CheckForSvr() (err error) {
|
||||||
if vhostHttpPort == 0 {
|
if vhostHttpPort == 0 {
|
||||||
err = fmt.Errorf("type [http] not support when vhost_http_port is not set")
|
return fmt.Errorf("type [http] not support when vhost_http_port is not set")
|
||||||
}
|
}
|
||||||
if err = cfg.DomainConf.checkForSvr(); err != nil {
|
if err = cfg.DomainConf.checkForSvr(); err != nil {
|
||||||
err = fmt.Errorf("proxy [%s] domain conf check error: %v", cfg.ProxyName, err)
|
err = fmt.Errorf("proxy [%s] domain conf check error: %v", cfg.ProxyName, err)
|
||||||
|
@ -49,7 +49,6 @@ func getHostFromAddr(addr string) (host string) {
|
|||||||
|
|
||||||
type HttpReverseProxy struct {
|
type HttpReverseProxy struct {
|
||||||
proxy *ReverseProxy
|
proxy *ReverseProxy
|
||||||
tr *http.Transport
|
|
||||||
|
|
||||||
vhostRouter *VhostRouters
|
vhostRouter *VhostRouters
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user