From 26cf61320240d925c2a4e5270d51b5000aac5f48 Mon Sep 17 00:00:00 2001
From: currite <sll@disroot.org>
Date: Wed, 23 Oct 2019 19:48:06 +0200
Subject: Avoid rule number 0 which causes segfault

---
 templates/load-balancing/wan/rule/node.def | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'templates/load-balancing/wan/rule/node.def')

diff --git a/templates/load-balancing/wan/rule/node.def b/templates/load-balancing/wan/rule/node.def
index 855d0ae..2624723 100644
--- a/templates/load-balancing/wan/rule/node.def
+++ b/templates/load-balancing/wan/rule/node.def
@@ -1,3 +1,5 @@
 tag:
 type: u32
-help: Rule number
+help: Rule number (1-9999)
+syntax:expression: $VAR(@) > 0 && $VAR(@) <= 9999; "firewall rule number must be between 1 and 9999"
+val_help: u32:1-9999; Rule number
-- 
cgit v1.2.3

