Skip to content

Commit

Permalink
optimized decision logic
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyd1988 authored and oilbeater committed Feb 18, 2022
1 parent af0baa0 commit 6ab8e36
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 @@ -405,7 +405,7 @@ func (c *Controller) handleUpdateNp(key string) error {
if len(npr.To) == 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 6ab8e36

Please sign in to comment.