summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-uvc_streamer/luasrc/model/cbi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-09-05 23:54:44 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-09-05 23:54:44 +0000
commit4f3c67df4103c00c764d58b76cd95468fad5a738 (patch)
tree2445e41320713bed486e15c4e9162a8556a75f3f /applications/luci-uvc_streamer/luasrc/model/cbi
parente6133d65e30775f91afdde32af54c47a54710c8c (diff)
* luci/applications/uvc-streamer: fix possible crash when no uvc_streamer sections is defined in config
Diffstat (limited to 'applications/luci-uvc_streamer/luasrc/model/cbi')
-rw-r--r--applications/luci-uvc_streamer/luasrc/model/cbi/uvc_streamer.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/applications/luci-uvc_streamer/luasrc/model/cbi/uvc_streamer.lua b/applications/luci-uvc_streamer/luasrc/model/cbi/uvc_streamer.lua
index 2054185d4d..2e0627ec83 100644
--- a/applications/luci-uvc_streamer/luasrc/model/cbi/uvc_streamer.lua
+++ b/applications/luci-uvc_streamer/luasrc/model/cbi/uvc_streamer.lua
@@ -21,6 +21,9 @@ local port
uci:foreach( "uvc_streamer", "uvc_streamer",
function(section) port = port or tonumber(section.port) end )
+addr = addr or "192.168.1.1"
+port = port or 8080
+
m = Map("uvc_streamer", translate("uvc_streamer"),
translatef("uvc_streamer_desc", nil, addr, port, addr, port))