mirror of
https://github.com/fatedier/frp.git
synced 2024-12-16 03:31:07 +01: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
@ -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…
Reference in New Issue
Block a user