feat: shorten dns.js

This commit is contained in:
William Harrison authored and GitHub committed 2023-06-08 15:54:57 +08:00
1 parent c05ab1c7b9
commit 2fe2e9891f
1 file changed
-19
-19
View File
@@ -6,21 +6,6 @@ var proxy = {
on: { cloudflare_proxy: "on" }
};
/**
* Note: glob() is only an internal undocumented helper function (maybe risky).
*
* @param { String } filesPath
* @returns {{
* name: string,
* data: {
* domain: string,
* subdomain: string,
* owner?: { email?: string },
* records: { A?: string[], AAAA?: string[], CNAME?: string, MX?: object[], TXT?: object[] },
* proxied: boolean
* }}[]}
*/
function getDomainsList(filesPath) {
var result = [];
var files = glob.apply(null, [filesPath, true, ".json"]);
@@ -37,10 +22,6 @@ function getDomainsList(filesPath) {
var domains = getDomainsList("../domains");
/**
* @type {{}}
*/
var commit = {};
for (var idx in domains) {