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",
YPEnabled: false,
YPServer: "https://yp.owncast.online",
YPServer: "https://directory.owncast.online",
WebServerPort: 8080,
RTMPServerPort: 1935,

View file

@ -93,7 +93,7 @@ func (yp *YP) ping() {
return
}
pingURL := config.GetDefaults().YPServer + "/ping"
pingURL := config.GetDefaults().YPServer + "/api/ping"
resp, err := http.Post(pingURL, "application/json", bytes.NewBuffer(req)) //nolint
if err != nil {
log.Errorln(err)