ddns 3.0.0__tar.gz → 3.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ddns might be problematic. Click here for more details.
- {ddns-3.0.0 → ddns-3.0.2}/PKG-INFO +1 -1
- {ddns-3.0.0 → ddns-3.0.2}/ddns.egg-info/PKG-INFO +1 -1
- {ddns-3.0.0 → ddns-3.0.2}/run.py +3 -2
- {ddns-3.0.0 → ddns-3.0.2}/util/ip.py +3 -3
- {ddns-3.0.0 → ddns-3.0.2}/LICENSE +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/README.md +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/ddns.egg-info/SOURCES.txt +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/ddns.egg-info/dependency_links.txt +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/ddns.egg-info/entry_points.txt +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/ddns.egg-info/top_level.txt +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/dns/__init__.py +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/dns/alidns.py +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/dns/callback.py +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/dns/cloudflare.py +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/dns/dnscom.py +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/dns/dnspod.py +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/dns/dnspod_com.py +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/dns/he.py +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/dns/huaweidns.py +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/setup.cfg +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/setup.py +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/util/__init__.py +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/util/cache.py +0 -0
- {ddns-3.0.0 → ddns-3.0.2}/util/config.py +0 -0
{ddns-3.0.0 → ddns-3.0.2}/run.py
RENAMED
|
@@ -18,7 +18,7 @@ from util import ip
|
|
|
18
18
|
from util.cache import Cache
|
|
19
19
|
from util.config import init_config, get_config
|
|
20
20
|
|
|
21
|
-
__version__ = "v3.0.
|
|
21
|
+
__version__ = "v3.0.2@2024-06-13T12:25:13+00:00" # CI 时会被Tag替换
|
|
22
22
|
__description__ = "automatically update DNS records to dynamic local IP [自动更新DNS记录指向本地IP]"
|
|
23
23
|
__doc__ = """
|
|
24
24
|
ddns[%s]
|
|
@@ -27,7 +27,7 @@ ddns[%s]
|
|
|
27
27
|
Copyright (c) New Future (MIT License)
|
|
28
28
|
""" % (__version__)
|
|
29
29
|
|
|
30
|
-
environ["DDNS_VERSION"] = "v3.0.
|
|
30
|
+
environ["DDNS_VERSION"] = "v3.0.2"
|
|
31
31
|
|
|
32
32
|
if getattr(sys, 'frozen', False):
|
|
33
33
|
# https://github.com/pyinstaller/pyinstaller/wiki/Recipe-OpenSSL-Certificate
|
|
@@ -104,6 +104,7 @@ def update_ip(ip_type, cache, dns, proxy_list):
|
|
|
104
104
|
record_type = (ip_type == '4') and 'A' or 'AAAA'
|
|
105
105
|
update_fail = False # https://github.com/NewFuture/DDNS/issues/16
|
|
106
106
|
for domain in domains:
|
|
107
|
+
domain = domain.lower() # https://github.com/NewFuture/DDNS/issues/431
|
|
107
108
|
if change_dns_record(dns, proxy_list, domain=domain, ip=address, record_type=record_type):
|
|
108
109
|
update_fail = True
|
|
109
110
|
if cache is not False:
|
|
@@ -50,7 +50,7 @@ def _open(url, reg):
|
|
|
50
50
|
try:
|
|
51
51
|
debug("open: %s", url)
|
|
52
52
|
res = urlopen(
|
|
53
|
-
Request(url, headers={'User-Agent': '
|
|
53
|
+
Request(url, headers={'User-Agent': 'Mozilla/5.0 ddns'}), timeout=60
|
|
54
54
|
).read().decode('utf8', 'ignore')
|
|
55
55
|
debug("response: %s", res)
|
|
56
56
|
return compile(reg).search(res).group()
|
|
@@ -58,11 +58,11 @@ def _open(url, reg):
|
|
|
58
58
|
error(e)
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
def public_v4(url="https://
|
|
61
|
+
def public_v4(url="https://api-ipv4.ip.sb/ip", reg=IPV4_REG): # 公网IPV4地址
|
|
62
62
|
return _open(url, reg)
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
def public_v6(url="https://
|
|
65
|
+
def public_v6(url="https://api-ipv6.ip.sb/ip", reg=IPV6_REG): # 公网IPV6地址
|
|
66
66
|
return _open(url, reg)
|
|
67
67
|
|
|
68
68
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|