Skip to content

Commit

Permalink
Fix txt record format
Browse files Browse the repository at this point in the history
  • Loading branch information
Tweak4141 committed Oct 20, 2024
1 parent b233fe9 commit 387b763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnsconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ for (var subdomain in allDomains) {
if (Array.isArray(domainData.target.TXT)) {
for (var txt in domainData.target.TXT) {
var txtRecord = domainData.target.TXT[txt];
commit.push(TXT(domainData.target.TXT.name === "@" ? subdomainName : txtRecord.name + "." + subdomainName, txtRecord.value));
commit.push(TXT(txtRecord.name, txtRecord.value));
}
} else {
commit.push(TXT(domainData.target.TXT.name === "@" ? subdomainName : domainData.target.TXT.name + "." + subdomainName, domainData.target.TXT.value));
Expand Down

0 comments on commit 387b763

Please sign in to comment.