Skip to content

Commit

Permalink
修改查询IP的API。 (#436)
Browse files Browse the repository at this point in the history
Co-authored-by: New Future <NewFuture@users.noreply.github.com>
  • Loading branch information
char-46 and NewFuture committed Apr 19, 2024
1 parent 6e01284 commit 732c5f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ def _open(url, reg):
error(e)


def public_v4(url="https://myip.ipip.net", reg=IPV4_REG): # 公网IPV4地址
def public_v4(url="https://api-ipv4.ip.sb/ip", reg=IPV4_REG): # 公网IPV4地址
return _open(url, reg)


def public_v6(url="https://myip6.ipip.net", reg=IPV6_REG): # 公网IPV6地址
def public_v6(url="https://api-ipv6.ip.sb/ip", reg=IPV6_REG): # 公网IPV6地址
return _open(url, reg)


Expand Down

0 comments on commit 732c5f8

Please sign in to comment.