luci-app-radicale2: Use http when not SSL 2462/head
authorDaniel F. Dickinson <cshored@thecshore.com>
Thu, 17 Jan 2019 00:13:01 +0000 (19:13 -0500)
committerDaniel F. Dickinson <cshored@thecshore.com>
Thu, 17 Jan 2019 00:13:01 +0000 (19:13 -0500)
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>
applications/luci-app-radicale2/luasrc/view/cbi/raduigo.htm

index 2f449d7b0bdc12d3bd5bbb03c6c59051f056bdc6..1bcf388bd62090359b40a217d993bb19e145a3cc 100644 (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