This commit is contained in:
parent
fe3fdea771
commit
c6d9d7af72
@ -15,8 +15,8 @@ POSTFIX_FORMAT = lambda ip: "[{}]/{}".format(CIDR_REGEX.findall(ip)[0][0],
|
|||||||
def __virtual__():
|
def __virtual__():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def get_public_ip(url="https://ipinfo.io"):
|
def get_public_ip(url="https://ip.paulbsd.com"):
|
||||||
req = Request(url=url,)
|
req = Request(url=url)
|
||||||
req.add_header("Accept", "*/*")
|
req.add_header("Accept", "*/*")
|
||||||
|
|
||||||
res = urlopen(req)
|
res = urlopen(req)
|
||||||
|
Loading…
Reference in New Issue
Block a user