mirror of
https://github.com/tiennm99/old-free-domains.git
synced 2026-10-18 00:15:35 +00:00
feat: shorten dns.js
This commit is contained in:
1 parent
c05ab1c7b9
commit
2fe2e9891f
1 file changed
-19
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user