summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-p910nd/luasrc/model
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2011-10-16 14:08:39 +0000
committerManuel Munz <freifunk@somakoma.de>2011-10-16 14:08:39 +0000
commit0e7b45ef0dc35baab8d1fdc9229e32a532d72ab8 (patch)
treefc838b1d5226e36020196abdf8c562e327347853 /applications/luci-p910nd/luasrc/model
parente4740d764bd573b484b4ea89526553b4477fa49f (diff)
applications/luci-p910nd: Better tcp port selection (#321)
Diffstat (limited to 'applications/luci-p910nd/luasrc/model')
-rw-r--r--applications/luci-p910nd/luasrc/model/cbi/p910nd.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/applications/luci-p910nd/luasrc/model/cbi/p910nd.lua b/applications/luci-p910nd/luasrc/model/cbi/p910nd.lua
index 68f75bfc4..e450a6275 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"))