From 766902a3d1390b4d6ce20023f90fa7d55ee4716d Mon Sep 17 00:00:00 2001 From: pengshiyu <1940607002@qq.com> Date: Fri, 30 Jun 2023 16:24:56 +0800 Subject: [PATCH] auto release --- CHANGELOG.md | 4 ++++ domain_admin/utils/whois_util/whois_util.py | 4 ++++ domain_admin/version.py | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e2861e446..b29ed8ef2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ - v1.5.0(开发中) - 新增网站监控 [issues17](https://github.com/mouday/domain-admin/issues/17) + +- v1.4.15(2023-06-30) + - 修复 `.co` 域名服务商`registrar_url` 字段缺少`http://` 的问题 + - v1.4.14(2023-06-30) - 新增 域名`注册商` 字段,感谢 [@mjwtc0722](https://github.com/mjwtc0722) 贡献的部分代码 diff --git a/domain_admin/utils/whois_util/whois_util.py b/domain_admin/utils/whois_util/whois_util.py index eed9fb4d2c..b12ca30538 100644 --- a/domain_admin/utils/whois_util/whois_util.py +++ b/domain_admin/utils/whois_util/whois_util.py @@ -173,6 +173,10 @@ def get_domain_whois(domain): if registrar_config: registrar_url = registrar_config['registrar_url'] + # 修复 https:// http:// + if registrar_url and (not registrar_url.startswith('http://') or not registrar_url.startswith('https://')): + registrar_url = 'http://' + registrar_url + if start_time and expire_time: return { 'start_time': start_time, diff --git a/domain_admin/version.py b/domain_admin/version.py index 3c5c056e82..222c9d42a6 100755 --- a/domain_admin/version.py +++ b/domain_admin/version.py @@ -2,4 +2,4 @@ """ 版本号 """ -VERSION = '1.4.14' +VERSION = '1.4.15'