mirror of
https://github.com/fatedier/frp.git
synced 2026-05-21 06:45:32 -06:00
set default location empty string array
modified: src/models/server/config.go modified: src/utils/vhost/router.go modified: src/models/server/config.go modified: src/utils/vhost/router.go
This commit is contained in:
parent
a4c05e6ff9
commit
a44be1e2ed
2 changed files with 4 additions and 2 deletions
|
|
@ -301,6 +301,8 @@ func loadProxyConf(confFile string) (proxyServers map[string]*ProxyServer, err e
|
|||
locStr, loc_ok := section["custom_location"]
|
||||
if loc_ok {
|
||||
proxyServer.Locations = strings.Split(locStr, ",")
|
||||
} else {
|
||||
proxyServer.Locations = []string{""}
|
||||
}
|
||||
} else if proxyServer.Type == "https" {
|
||||
// for https
|
||||
|
|
|
|||
|
|
@ -91,8 +91,8 @@ func (r *VhostRouters) get(rname string) (vr *VhostRouter, exist bool) {
|
|||
url = tmparray[1]
|
||||
}
|
||||
|
||||
vrs, exist := r.RouterByDomain[domain]
|
||||
if !exist {
|
||||
vrs, found := r.RouterByDomain[domain]
|
||||
if !found {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue