mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-08-06 06:24:16 +00:00
fix issues with TXT records longer than 255 chars
This commit is contained in:
+2
-2
@@ -129,10 +129,10 @@ for (var subdomain in domains) {
|
||||
if (domainData.record.TXT) {
|
||||
if (Array.isArray(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].length =< 255 ? "\"" + domainData.record.TXT[txt] + "\"" : domainData.record.TXT[txt]));
|
||||
}
|
||||
} else {
|
||||
records.push(TXT(subdomainName, "\"" + domainData.record.TXT + "\""));
|
||||
records.push(TXT(subdomainName, domainData.record.TXT.length =< 255 ? "\"" + domainData.record.TXT + "\"" : domainData.record.TXT));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user