@lsby/cloudflare-ipv6-ddns 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ async function 获取IPv6地址() {
|
|
|
14
14
|
throw e;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
async function 增加或更新dns记录(cf句柄, 区域id, 域名, ip地址, 类型, 使用代理 = false, ttl =
|
|
17
|
+
async function 增加或更新dns记录(cf句柄, 区域id, 域名, ip地址, 类型, 使用代理 = false, ttl = 1) {
|
|
18
18
|
console.log('开始增加或修改dns记录...');
|
|
19
19
|
console.log('查询dns记录列表...');
|
|
20
20
|
const 列表 = await cf句柄.dns.records.list({ zone_id: 区域id });
|