From 9428b92e6a4af97892d9ecf9ba2885fced3f5c57 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 21 Feb 2024 15:10:32 +0300 Subject: [PATCH] add IP.SB source --- pddnsc/sources/ipsb.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pddnsc/sources/ipsb.py diff --git a/pddnsc/sources/ipsb.py b/pddnsc/sources/ipsb.py new file mode 100644 index 0000000..cc78bbe --- /dev/null +++ b/pddnsc/sources/ipsb.py @@ -0,0 +1,9 @@ +from pddnsc.sources.http import GenericHttpSource + + +# https://ip.sb/api +class IPSB(GenericHttpSource): + def post_init(self): + super().post_init() + self.url_v4 = "https://api-ipv4.ip.sb/ip" + self.url_v6 = "https://api-ipv6.ip.sb/ip"