You've already forked libdetectcloud
mirror of
https://github.com/netbirdio/libdetectcloud.git
synced 2026-05-22 17:09:55 -07:00
14 lines
232 B
Go
14 lines
232 B
Go
package libdetectcloud
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
func detectAlibabaCloud() string {
|
|
resp, err := hc.Get("http://100.100.100.200/latest/")
|
|
if err == nil && resp.StatusCode == http.StatusOK {
|
|
return "Alibaba Cloud"
|
|
}
|
|
return ""
|
|
}
|