* luci/applications/uvc-streamer: fix possible crash when no uvc_streamer sections is defined in config
This commit is contained in:
parent
e6133d65e3
commit
4f3c67df41
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue