pddnsc/pddnsc/sources/wtfismyip.py
2024-02-22 18:24:36 +03:00

14 lines
343 B
Python

from pddnsc.sources.http import GenericHttpSource
class WTFIsMyIP(GenericHttpSource):
"""
https://wtfismyip.com/
https://gitlab.com/wtfismyip/wtfismyip
"""
def post_init(self):
super().post_init()
self.url_v4 = "https://text.ipv4.myip.wtf"
self.url_v6 = "https://text.ipv6.myip.wtf"