remove valid hostname check for URLs

This commit is contained in:
William Harrison
2025-04-23 16:20:02 +08:00
parent e54324544d
commit 3f1d17eb90
-1
View File
@@ -152,7 +152,6 @@ function validateRecordValues(t, data, file) {
// Check for self-referencing redirects
const urlHost = new URL(value).host;
t.true(isValidHostname(urlHost), `${file}: Invalid URL hostname for ${key}`);
t.false(urlHost === `${subdomain}.is-a.dev`, `${file}: ${key} cannot point to itself`);
}
}