fix: Fix domain validation not allowing for PTR DNS records (#7048)

This commit is contained in:
Gabriele C.
2026-03-02 00:24:49 +01:00
committed by GitHub
parent 111e981f73
commit 2c6dcbb7fa

View File

@@ -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;
}