Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taro不支持微信官方提供的wx.getLocalIPAddress()来获取局域网IP地址 #10631

Closed
fullstacker37 opened this issue Nov 11, 2021 · 0 comments · Fixed by #10713
Closed
Labels
enhancement New feature or request
Milestone

Comments

@fullstacker37
Copy link

这个特性解决了什么问题?

可以获取到用户局域网IP地址,来防范异常的IP攻击(比如同一个IP不断刷服务接口导致服务器压力过大)

这个 API 长什么样?

参照微信官方提供的api调用即可
实现:Taro.getLocalIPAddress(options)

@taro-bot2 taro-bot2 bot added the enhancement New feature or request label Nov 11, 2021
@Chen-jj Chen-jj added this to the 3.3.15 milestone Nov 23, 2021
Chen-jj added a commit that referenced this issue Nov 23, 2021
* feat(weapp): 增加对 getLocalIPAddress API 的支持,fix #10631

* fix: ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants