1
0
Fork 0
mirror of https://github.com/benbusby/farside.git synced 2025-06-06 01:16:37 +00:00

Change base link for services json

The sourcehut link is (rightfully) blocking unauthenticated requests, so
using the github link is more reliable.
This commit is contained in:
Ben Busby 2025-05-27 11:34:05 -06:00
parent 368fa2005d
commit 7b9b453a36
No known key found for this signature in database
GPG key ID: B9B7231E01D924A1

View file

@ -13,7 +13,7 @@ var (
)
const (
baseRepoLink = "https://git.sr.ht/~benbusby/farside/blob/main/"
baseRepoLink = "https://raw.githubusercontent.com/benbusby/farside/refs/heads/main/"
noCFServicesJSON = "services.json"
fullServicesJSON = "services-full.json"
@ -26,11 +26,6 @@ type Service struct {
Instances []string `json:"instances"`
}
func ingestServicesList(servicesBytes []byte) error {
err := json.Unmarshal(servicesBytes, &ServiceList)
return err
}
func GetServicesFileName() string {
cloudflareEnabled := false
@ -78,7 +73,7 @@ func InitializeServices() error {
}
}
err = ingestServicesList(fileBytes)
err = json.Unmarshal(fileBytes, &ServiceList)
if err != nil {
return err
}