还有安全策略也没有了,我试着加了一条,报错如下
REQUEST_DATE: 2024-01-01 18:59:52
PAN_VERSION: 8.0.4
OS_VERSION: Ubuntu 18.04.4 LTS x86_64(Py3.7.8)
REMOTE_ADDR: 27.42.96.177
REQUEST_URI: POST /safe/firewall/create_rules?
REQUEST_FORM: {'data': '{"protocol":"tcp","ports":"2083","choose":"all","address":"","domain":"","types":"accept","brief":"","source":""}'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 2106, in publicObject
res = run_obj.run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 2053, in run
result = getattr(toObject, get.action)(get)
File "/www/server/panel/class/panelSafeController.py", line 80, in model
raise public.PanelError(result['msg'])
public.PanelError: 面板运行时发生错误: Traceback (most recent call last):
File "/www/server/panel/class/safeModel/firewallModel.py", line 3338, in
s = Sqlite()
File "/www/server/panel/class/safeModel/firewallModel.py", line 3192, in __init__
self.create_table()
File "/www/server/panel/class/safeModel/firewallModel.py", line 3294, in create_table
if 'domain_total' not in create_table_str:
TypeError: argument of type 'NoneType' is not iterable |