Save web port number for future launches when specifying it on the command line. Closes #860

This commit is contained in:
Gabe Kangas 2021-03-27 17:37:08 -07:00
parent 146871adde
commit 829ee6c989

View File

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