1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-06-07 16:19:42 +08:00
This commit is contained in:
Mrs4s 2020-11-07 13:19:37 +08:00
parent 1f5c9acefb
commit 5e02883028
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ func DefaultConfig() *JsonConfig {
}, },
WebUi: &GoCqWebUi{ WebUi: &GoCqWebUi{
Enabled: true, Enabled: true,
Host: "0.0.0.0", Host: "127.0.0.1",
WebInput: false, WebInput: false,
WebUiPort: 9999, WebUiPort: 9999,
}, },

View File

@ -245,7 +245,7 @@ func main() {
conf.WebUi.WebUiPort = 9999 conf.WebUi.WebUiPort = 9999
} }
if conf.WebUi.Host == "" { if conf.WebUi.Host == "" {
conf.WebUi.Host = "0.0.0.0" conf.WebUi.Host = "127.0.0.1"
} }
confErr := conf.Save("config.json") confErr := conf.Save("config.json")
if confErr != nil { if confErr != nil {