From bdf0d365c3fc7473facc918c8f6c6ae84d8d4601 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Tue, 16 Mar 2021 13:57:28 -0700 Subject: [PATCH] Point YP PING requests at new endpoint --- config/defaults.go | 2 +- yp/yp.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/defaults.go b/config/defaults.go index d46bf41d9..9c966b300 100644 --- a/config/defaults.go +++ b/config/defaults.go @@ -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, diff --git a/yp/yp.go b/yp/yp.go index 7f7102fd5..acfadbf39 100644 --- a/yp/yp.go +++ b/yp/yp.go @@ -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)