From: Florian Eckert Date: Thu, 24 Oct 2019 07:16:12 +0000 (+0200) Subject: luci-app-openvpn: fix traceback for undefined fs value X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fbefeed9731ba4dc5c2269bc9ffc29d7541bb30d;p=oweals%2Fluci.git luci-app-openvpn: fix traceback for undefined fs value 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 --- diff --git a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua index 5bc1bd2aa..8521fca7e 100644 --- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua +++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua @@ -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",