DnsTube
DnsTube copied to clipboard
use regex to match ipv4 addr from response
some api dont directly response the ipv4 address, like:
- https://api.live.bilibili.com/client/v1/Ip/getInfoNew
so use regex to match.
(\b25[0-5]|\b2[0-4][0-9]|\b[01]?[0-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}
Thanks for the PR! I'll look into this ASAP.
Released in DnsTube v0.9.10