From 0dc326620d3e86267273b62bebdf929711bde7f4 Mon Sep 17 00:00:00 2001 From: Pascal Fischer Date: Thu, 8 Feb 2024 17:39:13 +0100 Subject: [PATCH] update endpoint for digital ocean --- digitalocean.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/digitalocean.go b/digitalocean.go index 4de0abb..418a4f7 100644 --- a/digitalocean.go +++ b/digitalocean.go @@ -5,7 +5,7 @@ import ( ) func detectDigitalOcean() string { - resp, err := hc.Get("http://169.254.169.254/metadata/v1.json") + resp, err := hc.Get("http://169.254.169.254/metadata/v1/") if err == nil && resp.StatusCode == http.StatusOK { return "Digital Ocean" }