mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 20:28:15 +03:00
Save web port number for future launches when specifying it on the command line. Closes #860
This commit is contained in:
parent
146871adde
commit
829ee6c989
1 changed files with 4 additions and 3 deletions
7
main.go
7
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)
|
||||
|
|
Loading…
Reference in a new issue