luci-app-radicale2: Use http when not SSL

The test or whether we were using SSL often returned true even when
using HTTP only, therefore fix the test.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
This commit is contained in:
Daniel F. Dickinson 2019-01-16 19:13:01 -05:00
parent 8a72536448
commit 11cff5374b

View file

@ -1,7 +1,7 @@
<%
local uci = require "luci.model.uci".cursor()
local http_port = uci:get("radicale2", "server", "host")
local usessl = uci:get("radicale2", "server", "ssl")
local usessl = uci:get_bool("radicale2", "server", "ssl")
if type(http_port) == "table" then
http_port = http_port[1]
end