Browse Source

Fix default end value of the `rangeItem`

ayooh 1 year ago
parent
commit
6144c8e340
1 changed files with 1 additions and 1 deletions
  1. 1 1
      route/rule_item_port_range.go

+ 1 - 1
route/rule_item_port_range.go

@@ -39,7 +39,7 @@ func NewPortRangeItem(isSource bool, rangeList []string) (*PortRangeItem, error)
 			}
 		}
 		if subIndex == len(portRange)-1 {
-			end = 0xFF
+			end = 0xFFFF
 		} else {
 			end, err = strconv.ParseUint(portRange[subIndex+1:], 10, 16)
 			if err != nil {