Refactor web UI server setup in main.go and update default host in config

This commit is contained in:
Andy Oknen 2025-07-29 21:03:03 +00:00
parent 345d5b9cbd
commit 51a1a0a3d7
9 changed files with 146 additions and 55 deletions

View file

@ -96,7 +96,7 @@ func GenerateConfig() *NodeConfig {
cfg.WebUI = WebUIConfig{
Enable: false,
Port: 9000,
Host: "",
Host: "127.0.0.1",
}
if err := cfg.postprocessConfig(); err != nil {
panic(err)