v5.0.60: UA=Mozilla/5.0 exactly (DDoS-Guard TLS fingerprint bypass)
This commit is contained in:
@@ -2,7 +2,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
nubes = {
|
nubes = {
|
||||||
source = "terra.k8c.ru/nubes-test/nubes"
|
source = "terra.k8c.ru/nubes-test/nubes"
|
||||||
version = "5.0.59"
|
version = "5.0.60"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@@ -804,7 +804,7 @@ func (c *UniversalClient) waitForInstanceIdle(ctx context.Context, instanceUid s
|
|||||||
func (c *UniversalClient) doRequest(ctx context.Context, method, path string, payload interface{}) ([]byte, http.Header, error) {
|
func (c *UniversalClient) doRequest(ctx context.Context, method, path string, payload interface{}) ([]byte, http.Header, error) {
|
||||||
// User-Agent: браузерный, чтобы пройти DDoS-Guard (см. docs/ops/API_TOKENS.md).
|
// User-Agent: браузерный, чтобы пройти DDoS-Guard (см. docs/ops/API_TOKENS.md).
|
||||||
// Go-http-client по умолчанию блокируется фильтром ddos-guard.
|
// Go-http-client по умолчанию блокируется фильтром ddos-guard.
|
||||||
const userAgent = "Mozilla/5.0 (compatible; Terraform-Provider-Nubes)"
|
const userAgent = "Mozilla/5.0"
|
||||||
const maxRetries = 3
|
const maxRetries = 3
|
||||||
baseDelay := 2 * time.Second
|
baseDelay := 2 * time.Second
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
version string = "5.0.59"
|
version string = "5.0.60"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
Reference in New Issue
Block a user