* luci/applications/uvc-streamer: fix possible crash when no uvc_streamer sections...
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 5 Sep 2008 23:54:44 +0000 (23:54 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 5 Sep 2008 23:54:44 +0000 (23:54 +0000)
applications/luci-uvc_streamer/luasrc/model/cbi/uvc_streamer.lua

index 2054185d4d63e8594f8d56cc50d7e2e9a7f3b455..2e0627ec83f9194838ddc8f61cee44156b45bcec 100644 (file)
@@ -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))