🔧 change default cdn

pull/548/head
微凉 2022-01-14 20:56:20 +08:00
parent fea8b376f8
commit ccaa28a323
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ func DefaultConfig() *Config {
return &Config{
Address: "0.0.0.0",
Port: 5244,
Assets: "jsdelivr",
Assets: "",
Database: Database{
Type: "sqlite3",
Port: 0,

View File

@ -21,7 +21,7 @@ func InitIndex() {
// index, err = public.Public.Open("index.html")
//}
if conf.Conf.Assets == "" {
conf.Conf.Assets = "jsdelivr"
conf.Conf.Assets = conf.DefaultConfig().Assets
}
index, err = public.Public.Open(fmt.Sprintf("%s.html", conf.Conf.Assets))
if err != nil {