Skip to content

fix: Fix the issue of abnormal iptables rule persistence

5624d48
Select commit
Loading
Failed to load commit list.
Merged

fix: Fix the issue of abnormal iptables rule persistence #11056

fix: Fix the issue of abnormal iptables rule persistence
5624d48
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Nov 24, 2025 in 1m 29s

Annotations

Check failure on line 159 in agent/utils/firewall/client/iptables.go

See this annotation in the file changed.

@sonarqubecloud 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

See this annotation in the file changed.

@sonarqubecloud 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

See this annotation in the file changed.

@sonarqubecloud 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

See this annotation in the file changed.

@sonarqubecloud 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

See this annotation in the file changed.

@sonarqubecloud 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