mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-06-07 07:59:42 +08:00
fix #381.
This commit is contained in:
parent
1f5c9acefb
commit
5e02883028
@ -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,
|
||||||
},
|
},
|
||||||
|
2
main.go
2
main.go
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user