From 6144c8e3405b7c13ce76f5ae8db5494169b52e86 Mon Sep 17 00:00:00 2001 From: ayooh <59398414+ayooh@users.noreply.github.com> Date: Sat, 13 Jul 2024 17:45:32 +0800 Subject: [PATCH] Fix default end value of the `rangeItem` --- route/rule_item_port_range.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/rule_item_port_range.go b/route/rule_item_port_range.go index 6e8b2724..f87575f2 100644 --- a/route/rule_item_port_range.go +++ b/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 {