mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-23 23:29:08 +02:00
Fix gosec bounds in the byte swizzle, drop the now-unused releaseCapture, and make the SSH and approval-reuse tests actually exercise their paths
This commit is contained in:
@@ -101,6 +101,7 @@ func TestApplyResolvedRule_SSHSkipsSourcePeer(t *testing.T) {
|
||||
}
|
||||
rule := &nmdata.PolicyRule{
|
||||
Protocol: string(PolicyRuleProtocolNetbirdSSH),
|
||||
Action: string(PolicyTrafficActionAccept),
|
||||
Bidirectional: bidirectional,
|
||||
}
|
||||
state := NewPeerConnResolveState()
|
||||
@@ -153,6 +154,7 @@ func TestApplyResolvedRule_SSHEnablesDestinationPeer(t *testing.T) {
|
||||
func TestApplyResolvedRule_LegacySSHSkipsSourcePeer(t *testing.T) {
|
||||
rule := &nmdata.PolicyRule{
|
||||
Protocol: string(PolicyRuleProtocolTCP),
|
||||
Action: string(PolicyTrafficActionAccept),
|
||||
Ports: []string{"22"},
|
||||
Bidirectional: true,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user