Skip to content

pf: properly flush outgoing connections when adding a banned ip #226

pf: properly flush outgoing connections when adding a banned ip

pf: properly flush outgoing connections when adding a banned ip #226

Triggered via pull request December 30, 2024 14:18
@mmetcmmetc
synchronize #389
pfctl-k
Status Failure
Total duration 1m 11s
Artifacts

lint.yml

on: pull_request
golangci-lint + codeql
1m 3s
golangci-lint + codeql
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
golangci-lint + codeql: pkg/ipsetcmd/ipset.go#L230
Magic number: 2, in <condition> detected (gomnd)
golangci-lint + codeql: pkg/iptables/iptables_context.go#L254
Magic number: 2147482, in <argument> detected (gomnd)
golangci-lint + codeql: pkg/iptables/iptables_context.go#L252
Magic number: 2147483, in <condition> detected (gomnd)
golangci-lint + codeql: pkg/iptables/metrics.go#L58
Magic number: 3, in <condition> detected (gomnd)
golangci-lint + codeql: pkg/iptables/metrics.go#L82
Magic number: 4, in <condition> detected (gomnd)
golangci-lint + codeql: pkg/iptables/metrics.go#L156
Magic number: 5, in <condition> detected (gomnd)
golangci-lint + codeql: pkg/iptables/metrics.go#L189
Magic number: 4, in <condition> detected (gomnd)
golangci-lint + codeql: pkg/nftables/nftables_context.go#L67
Magic number: 12, in <assign> detected (gomnd)
golangci-lint + codeql: pkg/nftables/nftables_context.go#L68
Magic number: 4, in <assign> detected (gomnd)
golangci-lint + codeql: pkg/nftables/nftables_context.go#L97
Magic number: 8, in <assign> detected (gomnd)
golangci-lint + codeql
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636