mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-05-17 00:16:32 +03:00
fix: Fix domain validation not allowing for PTR DNS records (#7048)
This commit is contained in:
@@ -3709,7 +3709,7 @@ message HealthCheckResponse {
|
||||
) {
|
||||
let hostname = this.monitor.hostname.trim();
|
||||
|
||||
if (this.monitor.type === "dns" && isIP(hostname)) {
|
||||
if (this.monitor.type === "dns" && this.monitor.dns_resolve_type !== "PTR" && isIP(hostname)) {
|
||||
toast.error(this.$t("hostnameCannotBeIP"));
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user