chore: fix typo
This commit is contained in:
@ -461,6 +461,7 @@ func UnmarshalRawConfig(buf []byte) (*RawConfig, error) {
|
||||
GeoIp: "https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geoip.dat",
|
||||
GeoSite: "https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geosite.dat",
|
||||
},
|
||||
ExternalUIURL: "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip",
|
||||
}
|
||||
|
||||
if err := yaml.Unmarshal(buf, rawCfg); err != nil {
|
||||
|
@ -21,7 +21,7 @@ var (
|
||||
ExternalUIName string
|
||||
)
|
||||
var (
|
||||
ErrImcompleteConf = errors.New("ExternalUI configure incomplete")
|
||||
ErrIncompleteConf = errors.New("ExternalUI configure incomplete")
|
||||
)
|
||||
var xdMutex sync.Mutex
|
||||
|
||||
@ -66,7 +66,7 @@ func UpdateUI() error {
|
||||
|
||||
func prepare() error {
|
||||
if ExternalUIPath == "" || ExternalUIURL == "" {
|
||||
return ErrImcompleteConf
|
||||
return ErrIncompleteConf
|
||||
}
|
||||
|
||||
if ExternalUIName != "" {
|
||||
|
Reference in New Issue
Block a user