@lsby/cloudflare-ipv6-ddns 0.0.11 → 0.0.12
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 +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,11 +9,10 @@ async function 获取IPv6地址() {
|
|
|
9
9
|
console.log('使用 test.ipw.cn');
|
|
10
10
|
const 响应 = await axios请求({
|
|
11
11
|
method: 'GET',
|
|
12
|
-
url: 'https://
|
|
12
|
+
url: 'https://v6.ip.zxinc.org/info.php?type=json',
|
|
13
13
|
});
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return 响应.IP;
|
|
14
|
+
console.log('成功获取本机ipv6地址: %O', 响应.myip);
|
|
15
|
+
return 响应.myip;
|
|
17
16
|
}
|
|
18
17
|
catch (网络错误) {
|
|
19
18
|
console.log(网络错误);
|