DnsTube icon indicating copy to clipboard operation
DnsTube copied to clipboard

use regex to match ipv4 addr from response

Open nilaoda opened this issue 3 years ago • 1 comments

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}

nilaoda avatar Sep 19 '22 16:09 nilaoda

Thanks for the PR! I'll look into this ASAP.

drittich avatar Sep 19 '22 18:09 drittich

Released in DnsTube v0.9.10

drittich avatar Oct 09 '22 13:10 drittich