fix(region): not set PrimaryZone when no dns_domain configured (#21510)

This commit is contained in:
Zexi Li
2024-11-04 12:39:46 +08:00
committed by GitHub
parent dc88d51d12
commit 1194d677e4
+1 -1
View File
@@ -64,7 +64,7 @@ func setup(c *caddy.Controller) error {
rDNS.PrimaryZone += "."
}
} else {
rDNS.PrimaryZone = "."
rDNS.PrimaryZone = ""
}
rDNS.primaryZoneLabelCount = dns.CountLabel(rDNS.PrimaryZone)