Skip to content

Commit

Permalink
Merge pull request #162 from laozhoubuluo/laozhoubuluo-patch-1
Browse files Browse the repository at this point in the history
fix(ip): ip_public_api
  • Loading branch information
NewFuture authored Mar 27, 2020
2 parents 63f5f30 + cf1d294 commit 3fa3270
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://pv.sohu.com/cityjson", reg=IPV4_REG): # 公网IPV4地址
def public_v4(url="https://pv.sohu.com/cityjson?ie=utf-8", reg=IPV4_REG): # 公网IPV4地址
return _open(url, reg)


def public_v6(url="http://ipv6-test.com/api/myip.php", reg=IPV6_REG): # 公网IPV6地址
def public_v6(url="https://ipv6-test.com/api/myip.php", reg=IPV6_REG): # 公网IPV6地址
return _open(url, reg)


Expand Down

0 comments on commit 3fa3270

Please sign in to comment.