improve: 优化 DDNS 配置读取形式

This commit is contained in:
Mmx233
2022-12-09 19:20:32 +08:00
parent 33283c66c9
commit 388ee21f64
3 changed files with 30 additions and 30 deletions

View File

@@ -39,11 +39,10 @@ func readConfig() {
Log: srunModels.Log{
FilePath: "./",
},
DDNS: map[string]interface{}{
"enable": false,
"domain": "www.example.com",
"ttl": 600,
"provider": "",
DDNS: srunModels.DDNS{
Enable: false,
TTL: 600,
Domain: "www.example.com",
},
})