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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ddns
3
- Version: 3.0.0
3
+ Version: 3.0.2
4
4
  Summary: automatically update DNS records to dynamic local IP [自动更新DNS记录指向本地IP]
5
5
  Home-page: https://ddns.newfuture.cc
6
6
  Author: NewFuture
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ddns
3
- Version: 3.0.0
3
+ Version: 3.0.2
4
4
  Summary: automatically update DNS records to dynamic local IP [自动更新DNS记录指向本地IP]
5
5
  Home-page: https://ddns.newfuture.cc
6
6
  Author: NewFuture
@@ -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.0@2024-03-01T11:59:30+00:00" # CI 时会被Tag替换
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.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': 'curl/7.63.0-ddns'}), timeout=60
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://myip.ipip.net", reg=IPV4_REG): # 公网IPV4地址
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://myip6.ipip.net", reg=IPV6_REG): # 公网IPV6地址
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