mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-05 00:50:21 +00:00
feat: update language handling and frontend template versions
This commit is contained in:
1 parent
8381068459
commit
180773a4f3
3 files changed
+9
-5
No files matched your search
+1
-2
@@ -79,12 +79,11 @@ func (c *Config) Read(path string, frontendTemplates []FrontendTemplate) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if c.ListenPort == 0 {
|
||||
c.ListenPort = 8008
|
||||
}
|
||||
if c.Language == "" {
|
||||
c.Language = "zh_CN"
|
||||
c.Language = "en_US"
|
||||
}
|
||||
if c.Location == "" {
|
||||
c.Location = "Asia/Shanghai"
|
||||
|
||||
Reference in new issue
Block a user