@lsby/cloudflare-ipv6-ddns 0.0.14 → 0.0.15
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
|
});
|
|
15
15
|
let 结果 = z.object({ code: z.literal(0), data: z.object({ myip: z.string() }) }).parse(响应);
|
|
16
16
|
console.log('成功获取本机ipv6地址: %O', 结果.data.myip);
|
|
17
|
-
return
|
|
17
|
+
return 结果.data.myip;
|
|
18
18
|
}
|
|
19
19
|
catch (错误) {
|
|
20
20
|
console.log(错误);
|