Files
2021-04-18 20:03:11 -04:00

14 lines
217 B
Go

package libdetectcloud
import (
"net/http"
)
func detectVultr() string {
resp, err := hc.Get("http://169.254.169.254/v1.json")
if err == nil && resp.StatusCode == http.StatusOK {
return "Vultr"
}
return ""
}