improve: 优化 DDNS 配置读取形式
This commit is contained in:
@@ -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",
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user