This commit is contained in:
parent
53c5b90b4e
commit
dc513e1efa
@ -15,7 +15,7 @@ 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://ip.paulbsd.com"):
|
def get_public_ip(url="https://api.ipapi.is/"):
|
||||||
req = Request(url=url)
|
req = Request(url=url)
|
||||||
req.add_header("Accept", "*/*")
|
req.add_header("Accept", "*/*")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user