luci-app-openvpn: fix traceback for undefined fs value
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 24 Oct 2019 07:16:12 +0000 (09:16 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 24 Oct 2019 07:16:19 +0000 (09:16 +0200)
This will fix the traceback for undefined fs value.
The bug was added by the cherry-pick commit
ca781af2f8052d2469d3e6f533208c9e6e9648d4 from master branch.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua

index 5bc1bd2aa0837b50360f729c3b71a84bc0204af3..8521fca7e3d3a8486509dc0f678873fe566d22f4 100644 (file)
@@ -34,7 +34,7 @@ local basicParams = {
        { FileUpload,"key","/etc/easy-rsa/keys/some-client.key", translate("Local private key") },
 }
 
-local has_ipv6 = fs.access("/proc/net/ipv6_route")
+local has_ipv6 = nixio.fs.access("/proc/net/ipv6_route")
 if has_ipv6 then
        table.insert( basicParams, { ListValue,
                "proto",