Point YP PING requests at new endpoint
This commit is contained in:
parent
8961b0c15b
commit
bdf0d365c3
@ -41,7 +41,7 @@ func GetDefaults() Defaults {
|
|||||||
DatabaseFilePath: "data/owncast.db",
|
DatabaseFilePath: "data/owncast.db",
|
||||||
|
|
||||||
YPEnabled: false,
|
YPEnabled: false,
|
||||||
YPServer: "https://yp.owncast.online",
|
YPServer: "https://directory.owncast.online",
|
||||||
|
|
||||||
WebServerPort: 8080,
|
WebServerPort: 8080,
|
||||||
RTMPServerPort: 1935,
|
RTMPServerPort: 1935,
|
||||||
|
2
yp/yp.go
2
yp/yp.go
@ -93,7 +93,7 @@ func (yp *YP) ping() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
pingURL := config.GetDefaults().YPServer + "/ping"
|
pingURL := config.GetDefaults().YPServer + "/api/ping"
|
||||||
resp, err := http.Post(pingURL, "application/json", bytes.NewBuffer(req)) //nolint
|
resp, err := http.Post(pingURL, "application/json", bytes.NewBuffer(req)) //nolint
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorln(err)
|
log.Errorln(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user