diff options
author | Stan Grishin <stangri@melmac.net> | 2019-11-18 16:01:58 -0700 |
---|---|---|
committer | Stan Grishin <stangri@melmac.net> | 2019-11-18 16:01:58 -0700 |
commit | 5a730115856ac8ae4461f402da39b0c05321b712 (patch) | |
tree | 8a2bc2c9cbaed96006931cd6b8fd63fd74415296 /applications/luci-app-vpnbypass/luasrc/model/cbi | |
parent | b1cb0d6d59c84a16f084e8ec91714a3d247a2700 (diff) |
luci-app-vpnbypass: use VPN node by default
Signed-off-by: Stan Grishin <stangri@melmac.net>
Diffstat (limited to 'applications/luci-app-vpnbypass/luasrc/model/cbi')
-rw-r--r-- | applications/luci-app-vpnbypass/luasrc/model/cbi/vpnbypass.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/applications/luci-app-vpnbypass/luasrc/model/cbi/vpnbypass.lua b/applications/luci-app-vpnbypass/luasrc/model/cbi/vpnbypass.lua index 08054dc484..8aa222709c 100644 --- a/applications/luci-app-vpnbypass/luasrc/model/cbi/vpnbypass.lua +++ b/applications/luci-app-vpnbypass/luasrc/model/cbi/vpnbypass.lua @@ -6,11 +6,11 @@ local packageName = "vpnbypass" local tmpfsVersion = tostring(util.trim(sys.exec("opkg list-installed " .. packageName .. " | awk '{print $3}'"))) if not tmpfsVersion or tmpfsVersion == "" then - tmpfsStatusCode = -1 - tmpfsVersion = "" - tmpfsStatus = packageName .. " " .. translate("is not installed or not found") + tmpfsStatusCode = -1 + tmpfsVersion = "" + tmpfsStatus = packageName .. " " .. translate("is not installed or not found") else - tmpfsVersion = " [" .. packageName .. " " .. tmpfsVersion .. "]" + tmpfsVersion = " [" .. packageName .. " " .. tmpfsVersion .. "]" end local tmpfsStatus = "Stopped" if sys.call("iptables -t mangle -L | grep -q VPNBYPASS") == 0 then @@ -60,9 +60,9 @@ d = Map("dhcp") s4 = d:section(TypedSection, "dnsmasq") s4.anonymous = true di = s4:option(DynamicList, "ipset", translate("Domains to Bypass"), - translate("Domains to be accessed directly (outside of the VPN tunnel), see ") + translate("Domains to be accessed directly (outside of the VPN tunnel), see ") .. [[<a href="]] .. readmeURL .. [[#bypass-domains-formatsyntax" target="_blank">]] - .. translate("README") .. [[</a> ]] .. translate("for syntax")) + .. translate("README") .. [[</a> ]] .. translate("for syntax")) function d.on_after_commit(map) util.exec("/etc/init.d/dnsmasq restart >/dev/null 2>&1") end |