Skip to content

Commit

Permalink
fix(ip): default address
Browse files Browse the repository at this point in the history
  • Loading branch information
NewFuture authored Sep 28, 2019
1 parent 5f86fa5 commit 1c42e30
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://ipv4.ip.sb", 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="http://ipv6.ip.sb", 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 1c42e30

Please sign in to comment.