mirror of
https://github.com/fatedier/frp.git
synced 2026-03-21 09:19:19 +08:00
update
This commit is contained in:
@@ -227,6 +227,14 @@ func LoadConf(confFile string) (err error) {
|
||||
if !ok && proxyClient.SubDomain == "" {
|
||||
return fmt.Errorf("Parse conf error: proxy [%s] custom_domains and subdomain should set at least one of them when type is http", proxyClient.Name)
|
||||
}
|
||||
|
||||
// locations
|
||||
locations, ok := section["locations"]
|
||||
if ok {
|
||||
proxyClient.Locations = strings.Split(locations, ",")
|
||||
} else {
|
||||
proxyClient.Locations = []string{""}
|
||||
}
|
||||
} else if proxyClient.Type == "https" {
|
||||
// custom_domains
|
||||
domainStr, ok := section["custom_domains"]
|
||||
|
||||
Reference in New Issue
Block a user