Skip to content

Commit 2c6dcbb

Browse files
authored
fix: Fix domain validation not allowing for PTR DNS records (louislam#7048)
1 parent 111e981 commit 2c6dcbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/EditMonitor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3709,7 +3709,7 @@ message HealthCheckResponse {
37093709
) {
37103710
let hostname = this.monitor.hostname.trim();
37113711
3712-
if (this.monitor.type === "dns" && isIP(hostname)) {
3712+
if (this.monitor.type === "dns" && this.monitor.dns_resolve_type !== "PTR" && isIP(hostname)) {
37133713
toast.error(this.$t("hostnameCannotBeIP"));
37143714
return false;
37153715
}

0 commit comments

Comments
 (0)