mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-05-30 10:23:37 +00:00
Update dnsconfig.js
This commit is contained in:
+2
-2
@@ -77,7 +77,7 @@ for (var idx in domains) {
|
||||
if (domainData.record.TXT) {
|
||||
if (Array.isArray(domainData.record.TXT)) {
|
||||
for (var txt in domainData.record.TXT) {
|
||||
commit.push(TXT(subdomainName, '"' + domainData.record.TXT[txt]) + '"');
|
||||
commit.push(TXT(subdomainName, domainData.record.TXT[txt]));
|
||||
}
|
||||
} else {
|
||||
commit.push(TXT(subdomainName, domainData.record.TXT));
|
||||
@@ -87,7 +87,7 @@ for (var idx in domains) {
|
||||
// Handle URL records
|
||||
if (domainData.record.URL) {
|
||||
commit.push(
|
||||
A(subdomainName, "45.85.238.5", { cloudflare_proxy: "off" }),
|
||||
A(subdomainName, "45.85.238.5", { cloudflare_proxy: "on" }),
|
||||
TXT("_redirect." + subdomainName, "v=txtv0;type=host;to=" + domainData.record.URL)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user