add IP.SB source

This commit is contained in:
Dmitry Belyaev 2024-02-21 15:10:32 +03:00
parent 90158ca5ad
commit 9428b92e6a
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3
1 changed files with 9 additions and 0 deletions

9
pddnsc/sources/ipsb.py Normal file
View File

@ -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"