mirror of
https://github.com/netbirdio/libdetectcloud.git
synced 2026-05-22 17:09:55 -07:00
update endpoint for digital ocean
This commit is contained in:
+1
-1
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user