mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-12 16:15:21 +00:00
Update dnsconfig.js
This commit is contained in:
1 parent
ab89bbf1f2
commit
c69f29b982
1 file changed
+2
-2
+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