Point YP PING requests at new endpoint

This commit is contained in:
Gabe Kangas 2021-03-16 13:57:28 -07:00
parent 8961b0c15b
commit bdf0d365c3
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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)