Repository: go-acme/lego (language: go)

Issue:
volcengine: no host in request URL
<img width="1782" alt="image" src="https://github.com/user-attachments/assets/b3a0bdca-2a31-490b-a774-adfa6d43f096">



<details>

my code
<img width="1113" alt="image" src="https://github.com/user-attachments/assets/f59e46af-0d1c-42e1-afc8-a16214819dd9">

https://github.com/1Panel-dev/1Panel/blob/f47f7c73613563a986607bfeb87077057b7d004a/backend/utils/ssl/client.go#L109

</details>
            


Discussion / hints:

Fix patch:
diff --git a/providers/dns/volcengine/volcengine.go b/providers/dns/volcengine/volcengine.go
index 80933b4c18..7dc1054d60 100644
--- a/providers/dns/volcengine/volcengine.go
+++ b/providers/dns/volcengine/volcengine.go
@@ -54,6 +54,10 @@ type Config struct {
 // NewDefaultConfig returns a default configuration for the DNSProvider.
 func NewDefaultConfig() *Config {
 	return &Config{
+		Scheme: env.GetOrDefaultString(EnvScheme, "https"),
+		Host:   env.GetOrDefaultString(EnvHost, "open.volcengineapi.com"),
+		Region: env.GetOrDefaultString(EnvRegion, volc.DefaultRegion),
+
 		TTL:                env.GetOrDefaultInt(EnvTTL, defaultTTL),
 		PropagationTimeout: env.GetOrDefaultSecond(EnvPropagationTimeout, 240*time.Second),
 		PollingInterval:    env.GetOrDefaultSecond(EnvPollingInterval, 10*time.Second),
@@ -81,9 +85,6 @@ func NewDNSProvider() (*DNSProvider, error) {
 	config := NewDefaultConfig()
 	config.AccessKey = values[EnvAccessKey]
 	config.SecretKey = values[EnvSecretKey]
-	config.Scheme = env.GetOrDefaultString(EnvScheme, "https")
-	config.Host = env.GetOrDefaultString(EnvHost, "open.volcengineapi.com")
-	config.Region = env.GetOrDefaultString(EnvRegion, volc.DefaultRegion)
 
 	return NewDNSProviderConfig(config)
 }


Test patch: