mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-16 16:15:47 +00:00
Merge pull request #17066 from is-a-dev/wdhdev-patch-1
add quotations to TXT records
This commit is contained in:
1 file changed
+4
-4
+4
-4
@@ -127,22 +127,22 @@ for (var subdomain in domains) {
|
|||||||
if (domainData.record.TXT) {
|
if (domainData.record.TXT) {
|
||||||
if (Array.isArray(domainData.record.TXT)) {
|
if (Array.isArray(domainData.record.TXT)) {
|
||||||
for (var txt in domainData.record.TXT) {
|
for (var txt in domainData.record.TXT) {
|
||||||
records.push(TXT(subdomainName, domainData.record.TXT[txt]));
|
records.push(TXT(subdomainName, "\"" + domainData.record.TXT[txt] + "\""));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
records.push(TXT(subdomainName, domainData.record.TXT));
|
records.push(TXT(subdomainName, "\"" + domainData.record.TXT + "\""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle URL records
|
// Handle URL records
|
||||||
if (domainData.record.URL) {
|
if (domainData.record.URL) {
|
||||||
records.push(A(subdomainName, IP("192.0.2.1"), CF_PROXY_ON));
|
records.push(A(subdomainName, IP("192.0.2.1"), CF_PROXY_ON));
|
||||||
records.push(TXT("_redirect." + subdomainName, domainData.record.URL));
|
records.push(TXT("_redirect." + subdomainName, "\"" + domainData.record.URL + "\""));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle reserved domains
|
// Handle reserved domains
|
||||||
if (domainData.reserved) {
|
if (domainData.reserved) {
|
||||||
records.push(TXT(subdomainName, "RESERVED"));
|
records.push(TXT(subdomainName, "\"" + "RESERVED" + "\""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user