We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uname -a
python -V
python kunlun.py
初次运行console模式、添加规则时没有添加规则level值。
Kunlun-M/core/rule.py
Lines 182 to 189 in 2e26ae9
上面代码没添加level值进数据库,导致添加到数据库规则里的level值均为5。
Kunlun-M/web/index/models.py
Lines 214 to 220 in 2e26ae9
Move-Item -Path .\Kunlun_M\settings.py.bak -Destination .\Kunlun_M\settings.py python .\kunlun.py init initialize python .\kunlun.py console # 直接输入exit,退出console模式 python .\kunlun.py console # 再次运行,就会报错
报错信息为:
[23:38:44] [INIT] RuleCheck start. [23:38:44] [INIT][Load Rules] Check Rule CVI_5001 硬编码密码 [23:38:44] [INIT][Rule Check] CVI_5001 config level has changed: [23:38:44] [INIT][Rule Check] level in Rule File is 2 [23:38:44] [INIT][Rule Check] level in Database is 5 [23:38:44] [INIT][Rule Check] whether load new level from Rule File(Y/N):
在/core/rule.py的第182行至 第187行之间,加入level=ruleclass.level,即可。
/core/rule.py
level=ruleclass.level,
The text was updated successfully, but these errors were encountered:
949b56e
No branches or pull requests
System and Python Environment
uname -a
python -V
python kunlun.py
Description
初次运行console模式、添加规则时没有添加规则level值。
Kunlun-M/core/rule.py
Lines 182 to 189 in 2e26ae9
上面代码没添加level值进数据库,导致添加到数据库规则里的level值均为5。
Kunlun-M/web/index/models.py
Lines 214 to 220 in 2e26ae9
Steps to Reproduce
报错信息为:
Step to Fix
在
/core/rule.py
的第182行至 第187行之间,加入level=ruleclass.level,
即可。The text was updated successfully, but these errors were encountered: