From 890a2fc82816945c94c2c5a208f5ddf9f6dae5e0 Mon Sep 17 00:00:00 2001 From: Jakub Janco Date: Wed, 29 Nov 2017 00:26:51 +0100 Subject: luci-app-mwan3: fix member metric allowed values mwan3 accepts only 1-256 metric of member, if it is more, member is ignored. This patch fix translations and allowed values of member metric input. Signed-off-by: Jakub Janco --- applications/luci-app-mwan3/luasrc/model/cbi/mwan/memberconfig.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'applications/luci-app-mwan3/luasrc') diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/memberconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/memberconfig.lua index eb6f417af..dc2e0da44 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/memberconfig.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/memberconfig.lua @@ -27,8 +27,8 @@ interface = mwan_member:option(Value, "interface", translate("Interface")) cbi_add_interface(interface) metric = mwan_member:option(Value, "metric", translate("Metric"), - translate("Acceptable values: 1-1000. Defaults to 1 if not set")) - metric.datatype = "range(1, 1000)" + translate("Acceptable values: 1-256. Defaults to 1 if not set")) + metric.datatype = "range(1, 256)" weight = mwan_member:option(Value, "weight", translate("Weight"), translate("Acceptable values: 1-1000. Defaults to 1 if not set")) -- cgit v1.2.3