summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packet/bgp/bgp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go
index b10034c5..b66e197f 100644
--- a/packet/bgp/bgp.go
+++ b/packet/bgp/bgp.go
@@ -2604,7 +2604,7 @@ func flowSpecNumericParser(rf RouteFamily, args []string) (FlowSpecComponentInte
func flowSpecPortParser(rf RouteFamily, args []string) (FlowSpecComponentInterface, error) {
f := func(i int) error {
- if 0 < i && i < 65536 {
+ if 0 <= i && i < 65536 {
return nil
}
return fmt.Errorf("port range exceeded")