Skip to content

Commit

Permalink
Merge pull request #43 from eleztian/main
Browse files Browse the repository at this point in the history
fix udp match
  • Loading branch information
singchia authored Mar 14, 2024
2 parents af1ef04 + 07cbed5 commit 2c1c1fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions iptables/match.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"strings"

"github.com/singchia/go-hammer/tree"

"github.com/singchia/go-xtables"
"github.com/singchia/go-xtables/pkg/network"
)
Expand Down Expand Up @@ -10284,6 +10285,10 @@ func newMatchUDP(opts ...OptionMatchUDP) (*MatchUDP, error) {
baseMatch: &baseMatch{
matchType: MatchTypeUDP,
},
SrcPortMin: -1,
SrcPortMax: -1,
DstPortMin: -1,
DstPortMax: -1,
}
for _, opt := range opts {
opt(match)
Expand Down

0 comments on commit 2c1c1fa

Please sign in to comment.