mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-01-31 11:03:11 +08:00
Merge branch 'master' into feat/issue-6316
This commit is contained in:
@@ -2083,8 +2083,9 @@ message HealthCheckResponse {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Wildcard is allowed only for DNS
|
||||
if (!isFQDN(hostname, {
|
||||
// Root zone "." is valid for DNS but not recognized by isFQDN
|
||||
const isRootZone = this.monitor.type === "dns" && hostname === ".";
|
||||
if (!isRootZone && !isFQDN(hostname, {
|
||||
allow_wildcard: this.monitor.type === "dns",
|
||||
require_tld: false,
|
||||
allow_underscores: true,
|
||||
|
||||
Reference in New Issue
Block a user