fix: Fix the issue of abnormal iptables rule persistence #11056
Quality Gate passed
Annotations
Check failure on line 159 in agent/utils/firewall/client/iptables.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 24 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=1Panel-dev_1Panel&issues=AZq1hDm2wPINW-fhMcw8&open=AZq1hDm2wPINW-fhMcw8&pullRequest=11056
Check failure on line 111 in agent/utils/firewall/client/iptables.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=1Panel-dev_1Panel&issues=AZq1hDm2wPINW-fhMcw7&open=AZq1hDm2wPINW-fhMcw7&pullRequest=11056
Check failure on line 13 in agent/init/firewall/firwall.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 31 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=1Panel-dev_1Panel&issues=AZq1hDnIwPINW-fhMcw9&open=AZq1hDnIwPINW-fhMcw9&pullRequest=11056
Check failure on line 66 in agent/app/service/iptables.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 23 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=1Panel-dev_1Panel&issues=AZq1hDgzwPINW-fhMcw5&open=AZq1hDgzwPINW-fhMcw5&pullRequest=11056
Check failure on line 155 in agent/app/service/iptables.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 48 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=1Panel-dev_1Panel&issues=AZq1hDgzwPINW-fhMcw6&open=AZq1hDgzwPINW-fhMcw6&pullRequest=11056