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:
parent
8a72536448
commit
11cff5374b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue