Merge remote-tracking branch 'origin/main'

This commit is contained in:
jxxghp 2023-10-10 13:58:02 +08:00
commit 91085d13a3

View File

@ -211,7 +211,7 @@ class CustomHosts(_PluginBase):
# 添加新的Hosts # 添加新的Hosts
system_hosts.add(new_entrys) system_hosts.add(new_entrys)
system_hosts.write() system_hosts.write()
logger.info("更新系统hosts文件成功") logger.info("更新系统hosts文件成功容器运行则更新容器hosts")
except Exception as err: except Exception as err:
err_flag = True err_flag = True
logger.error(f"更新系统hosts文件失败{str(err) or '请检查权限'}") logger.error(f"更新系统hosts文件失败{str(err) or '请检查权限'}")