diff --git a/main.go b/main.go index b0d9f9a40..aea4390b7 100644 --- a/main.go +++ b/main.go @@ -112,11 +112,12 @@ func main() { return } - config.WebServerPort = portNumber - } else { - config.WebServerPort = data.GetHTTPPortNumber() + log.Println("Saving new web server port number to", portNumber) + data.SetHTTPPortNumber(float64(portNumber)) } + config.WebServerPort = data.GetHTTPPortNumber() + // starts the core if err := core.Start(); err != nil { log.Fatalln("failed to start the core package", err)