mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-13 04:15:02 +00:00
fix url records
This commit is contained in:
1 parent
ae905e36af
commit
6cf5aefc93
1 file changed
+8
-6
+8
-6
@@ -71,12 +71,6 @@ for (var idx in domains) {
|
||||
);
|
||||
}
|
||||
|
||||
if (domainData.record.URL) {
|
||||
commit[domainName].push(
|
||||
CNAME(subdomainName, "redirect.is-a.dev.", proxyState)
|
||||
);
|
||||
}
|
||||
|
||||
// Handle MX records
|
||||
if (domainData.record.MX) {
|
||||
for (var mx in domainData.record.MX) {
|
||||
@@ -119,6 +113,14 @@ for (var idx in domains) {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Handle URL records
|
||||
// Note: URL records are not actual DNS records, we have a server configured to support them instead.
|
||||
if (domainData.record.URL) {
|
||||
commit[domainName].push(
|
||||
A(subdomainName, "192.0.2.1", proxy.on)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Commit all DNS records
|
||||
|
||||
Reference in new issue
Block a user