1.4.5.2
This commit is contained in:
18
EdgeAPI/internal/const/vars_plus.go
Normal file
18
EdgeAPI/internal/const/vars_plus.go
Normal file
@@ -0,0 +1,18 @@
|
||||
// Copyright 2023 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
//go:build plus
|
||||
|
||||
package teaconst
|
||||
|
||||
import (
|
||||
"github.com/iwind/TeaGo/Tea"
|
||||
)
|
||||
|
||||
var AuthorityValidatorHOSTS = []string{}
|
||||
|
||||
func init() {
|
||||
if Tea.IsTesting() {
|
||||
AuthorityValidatorHOSTS = []string{"http://127.0.0.1:8084"} // local test
|
||||
} else {
|
||||
AuthorityValidatorHOSTS = []string{"https://authority.goedge.cn"}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user