Fix #981 Use -webserverip to set http listen address (#1032)

* Fix #981 Use -webserverip to set http listen address

* use 0.0.0.0 as default http listen address

* add Admin REST API for setting http listen address

* full input validation of port and IP
This commit is contained in:
leuc
2021-05-25 01:13:49 +02:00
committed by GitHub
parent dd8bf54f66
commit 5ab901bb36
7 changed files with 82 additions and 6 deletions

View File

@@ -14,6 +14,7 @@ type Defaults struct {
DatabaseFilePath string
WebServerPort int
WebServerIP string
RTMPServerPort int
StreamKey string
@@ -46,6 +47,7 @@ func GetDefaults() Defaults {
YPServer: "https://directory.owncast.online",
WebServerPort: 8080,
WebServerIP: "0.0.0.0",
RTMPServerPort: 1935,
StreamKey: "abc123",