utils/ip
ee-core:v2.1.0
# 介绍
工具库IP模块。
# 使用方法
const UtilsIP = require('ee-core/utils/ip');
# API列表
# publicIpv4(options)
- options [Object]
- type [String] - 查询类型:'http' | 'dns' | 'all'
- timeout [Int] - 超时时间,默认 3000 毫秒
获取公网ipv4
# publicIpv6(options)
- options [Object]
- type [String] - 查询类型:'http' | 'dns' | 'all'
- timeout [Int] - 超时时间,默认 3000 毫秒
获取公网ipv6
上次更新: 2025/03/27, 02:12:08