Remove dns based cloud detection (#1812)

* remove dns based cloud checks

* remove dns based cloud checks
This commit is contained in:
pascal-fischer
2024-04-09 19:01:31 +02:00
committed by GitHub
parent c1f66d1354
commit 22b2caffc6
4 changed files with 1 additions and 82 deletions

View File

@ -6,7 +6,7 @@ import (
)
func detectGCP(ctx context.Context) string {
req, err := http.NewRequestWithContext(ctx, "GET", "http://metadata.google.internal", nil)
req, err := http.NewRequestWithContext(ctx, "GET", "http://169.254.169.254", nil)
if err != nil {
return ""
}