Skip to content

Commit 99ffdf0

Browse files
committed
DNSPOD 根域名自动判断#8
1 parent b3d4884 commit 99ffdf0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dns/dnspod.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ def request(action, param=None, **params):
6464
def get_domain_info(domain):
6565
"""
6666
切割域名获取主域名和对应ID
67-
TODO @记录支持
6867
"""
6968
domain_split = domain.split('.')
7069
if len(domain_split) == 3: # 长度为3
@@ -80,6 +79,8 @@ def get_domain_info(domain):
8079
break
8180
else:
8281
return None, None
82+
if not sub: # root domain根域名https://github.com/NewFuture/DDNS/issues/9
83+
sub = '@'
8384
return did, sub
8485

8586

0 commit comments

Comments
 (0)