Skip to content

Commit

Permalink
Optimized decision logic
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyd1988 committed Jan 4, 2022
1 parent e66c1a2 commit 960f02c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/network_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func (c *Controller) handleUpdateNp(key string) error {
if len(npr.From) == 0 {
if protocol == kubeovnv1.ProtocolIPv4 {
allows = []string{"0.0.0.0/0"}
} else if protocol == kubeovnv1.ProtocolIPv6 {
} else {
allows = []string{"::/0"}
}
} else {
Expand Down

0 comments on commit 960f02c

Please sign in to comment.