Browse Source

Point YP PING requests at new endpoint

pull/831/head
Gabe Kangas 5 years ago
parent
commit
bdf0d365c3
  1. 2
      config/defaults.go
  2. 2
      yp/yp.go

2
config/defaults.go

@ -41,7 +41,7 @@ func GetDefaults() Defaults { @@ -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,

2
yp/yp.go

@ -93,7 +93,7 @@ func (yp *YP) ping() { @@ -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)

Loading…
Cancel
Save