From fbefeed9731ba4dc5c2269bc9ffc29d7541bb30d Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 24 Oct 2019 09:16:12 +0200 Subject: [PATCH] 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 --- .../luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.25.1