Skip to content

Commit 73a2bd2

Browse files
committed
add comment
1 parent 4338833 commit 73a2bd2

File tree

1 file changed

+1
-0
lines changed
  • packages/orchestrator/internal/sandbox/network

1 file changed

+1
-0
lines changed

packages/orchestrator/internal/sandbox/network/firewall.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ func addCIDRToSet(conn *nftables.Conn, ipset set.Set, cidr string) error {
266266
return err
267267
}
268268

269+
// The checked range is 0.0.0.0 to 255.255.255.254, because when 255.255.255.255 is added, it's then requested as 255.255.255.254.
269270
if len(current) == 1 && current[0].AddressRangeStart == netip.MustParseAddr("0.0.0.0") && current[0].AddressRangeEnd == netip.MustParseAddr("255.255.255.254") {
270271
// Because 0.0.0.0/0 is not valid IP per GoLang, we can't add new addresses to the set.
271272
return nil

0 commit comments

Comments
 (0)