This commit is contained in:
parent
5f59650d7f
commit
7dc5709a25
@ -15,7 +15,11 @@ 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://api.ipapi.is/"):
|
## services
|
||||||
|
# https://api.ipapi.is/
|
||||||
|
# https://4.ident.me/json
|
||||||
|
# https://ip.paulbsd.com/json
|
||||||
|
def get_public_ip(url="https://4.ident.me/json"):
|
||||||
req = Request(url=url)
|
req = Request(url=url)
|
||||||
req.add_header("Accept", "*/*")
|
req.add_header("Accept", "*/*")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user