Merge pull request #305 from nmav/compression
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 8 Feb 2015 18:13:39 +0000 (19:13 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 8 Feb 2015 18:13:39 +0000 (19:13 +0100)
luci-app-ocserv: Added option to enable compression

1  2 
applications/luci-app-ocserv/luasrc/model/cbi/ocserv/main.lua

@@@ -42,7 -42,7 +42,7 @@@ if fd then local l
                        found_pki = true
                elseif found_pki then
                        local hash = ln:match("([a-f0-9]+)")
 -                      o_pki.default = hash and hash:upper()
 +                      o_pki.default = hash and "sha1:" .. hash:upper()
                        complete = complete + 1
                        found_pki = false
                end
@@@ -90,6 -90,10 +90,10 @@@ local pip = s:taboption("general", Flag
        translate("The assigned IPs will be selected deterministically"))
  pip.default = "1"
  
+ local compr = s:taboption("general", Flag, "compression", translate("Enable compression"),
+       translate("Enable compression"))
+ compr.default = "1"
  local udp = s:taboption("general", Flag, "udp", translate("Enable UDP"),
        translate("Enable UDP channel support; this must be enabled unless you know what you are doing"))
  udp.default = "1"