为了能快速了解并处理您的问题,请提供以下基础信息:
8.0.5
CentOS 7.9.2009 x86_64(Py3.7.9)
昨天我将宝塔升级到8.0.5之后,今天修改安全端口21为允许时提示网络错误 AttributeError: 'str' object has no attribute 'get';尝试删除20端口成功,但是重新添加20端口提示成功,列表中未发现该端口记录,
请问我应该怎么解决该问题呢相关截图(日志、错误):REQUEST_DATE: 2024-01-24 11:56:36 VERSION: CentOS 7.9.2009 x86_64(Py3.7.9) - 8.0.5 REMOTE_ADDR: 192.161.61.2 REQUEST_URI: POST /safe/firewall/modify_rules?REQUEST_FORM: {'data': '{"protocol":"tcp","ports":"21","choose":"all","types":"accept","brief":"FTP协议默认端口","address":"","domain":"","id":2,"addtime":"2024-01-22 16:10:15","status":2,"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 2303, in publicObject res = run_obj.run(toObject, defs, get) File "/www/server/panel/BTPanel/__init__.py", line 2250, in run result = getattr(toObject, get.action)(get) File "/www/server/panel/class/panelSafeController.py", line 75, in model result = PluginLoader.module_run(module_name,def_name,pdata) File "/www/server/panel/class/safeModel/firewallModel.py", line 583, in modify_rules _address = data.get("address", "")AttributeError: 'str' object has no attribute 'get'
|
|