From 0e7b45ef0dc35baab8d1fdc9229e32a532d72ab8 Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Sun, 16 Oct 2011 14:08:39 +0000 Subject: applications/luci-p910nd: Better tcp port selection (#321) --- applications/luci-p910nd/luasrc/model/cbi/p910nd.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'applications/luci-p910nd/luasrc/model/cbi') diff --git a/applications/luci-p910nd/luasrc/model/cbi/p910nd.lua b/applications/luci-p910nd/luasrc/model/cbi/p910nd.lua index 68f75bfc4a..e450a62755 100644 --- a/applications/luci-p910nd/luasrc/model/cbi/p910nd.lua +++ b/applications/luci-p910nd/luasrc/model/cbi/p910nd.lua @@ -26,7 +26,11 @@ s:option(Flag, "enabled", translate("enable")) s:option(Value, "device", translate("Device")).rmempty = true -s:option(Value, "port", translate("Port"), translate("port_help")).rmempty = true +p = s:option(ListValue, "port", translate("Port"), translate("TCP listener port.")) +p.rmempty = true +for i=0,9 do + p:value(i, 9100+i) +end s:option(Flag, "bidirectional", translate("Bidirectional mode")) -- cgit v1.2.3