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

pull/7076/head
Gabriele C. 3 months ago committed by GitHub
parent 111e981f73
commit 2c6dcbb7fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save