From 124817b733b9aa8371f9bc72339ebe5b6659ed9d Mon Sep 17 00:00:00 2001 From: thsrite Date: Wed, 25 Oct 2023 16:52:19 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=87=AA=E5=AE=9A=E4=B9=89hosts=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E6=8F=8F=E8=BF=B0=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/plugins/customhosts/__init__.py | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/app/plugins/customhosts/__init__.py b/app/plugins/customhosts/__init__.py index 2a2fc392..99cd0fb8 100644 --- a/app/plugins/customhosts/__init__.py +++ b/app/plugins/customhosts/__init__.py @@ -145,6 +145,26 @@ class CustomHosts(_PluginBase): ] } ] + }, + { + 'component': 'VRow', + 'content': [ + { + 'component': 'VCol', + 'props': { + 'cols': 12, + }, + 'content': [ + { + 'component': 'VAlert', + 'props': { + 'text': 'host格式ip host,中间有空格!!!' + '(注:容器运行则更新容器hosts!非宿主机!)' + } + } + ] + } + ] } ] } @@ -211,7 +231,7 @@ class CustomHosts(_PluginBase): # 添加新的Hosts system_hosts.add(new_entrys) system_hosts.write() - logger.info("更新系统hosts文件成功(注:容器运行则更新容器hosts!)") + logger.info("更新系统hosts文件成功") except Exception as err: err_flag = True logger.error(f"更新系统hosts文件失败:{str(err) or '请检查权限'}")