mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix for current VPN
This commit is contained in:
parent
6f3a32e13b
commit
41acd6fba9
1 changed files with 2 additions and 2 deletions
|
@ -247,10 +247,10 @@ end
|
||||||
available_vpns = {available_vpns}
|
available_vpns = {available_vpns}
|
||||||
end
|
end
|
||||||
for _, vpn in pairs(available_vpns) do
|
for _, vpn in pairs(available_vpns) do
|
||||||
if vpn == "glorytun-tcp" then
|
if vpn == "glorytun_tcp" then
|
||||||
%>
|
%>
|
||||||
<% if nixio.fs.access("/usr/sbin/glorytun") then %><option value="glorytun_tcp" <% if uci:get("glorytun","vpn","enable") == "1" and uci:get("glorytun","vpn","proto") == "tcp" then %>selected="selected"<% end %>>Glorytun TCP</option><% end %>
|
<% if nixio.fs.access("/usr/sbin/glorytun") then %><option value="glorytun_tcp" <% if uci:get("glorytun","vpn","enable") == "1" and uci:get("glorytun","vpn","proto") == "tcp" then %>selected="selected"<% end %>>Glorytun TCP</option><% end %>
|
||||||
<% elseif vpn == "glorytun-udp" then %>
|
<% elseif vpn == "glorytun_udp" then %>
|
||||||
<% if nixio.fs.access("/usr/sbin/glorytun-udp") then %><option value="glorytun_udp" <% if uci:get("glorytun","vpn","enable") == "1" and uci:get("glorytun","vpn","proto") == "udp" then %>selected="selected"<% end %>>Glorytun UDP</option><% end %>
|
<% if nixio.fs.access("/usr/sbin/glorytun-udp") then %><option value="glorytun_udp" <% if uci:get("glorytun","vpn","enable") == "1" and uci:get("glorytun","vpn","proto") == "udp" then %>selected="selected"<% end %>>Glorytun UDP</option><% end %>
|
||||||
<% elseif vpn == "dsvpn" then %>
|
<% elseif vpn == "dsvpn" then %>
|
||||||
<% if nixio.fs.access("/usr/sbin/dsvpn") then %><option value="dsvpn" <% if uci:get("dsvpn","vpn","enable") == "1" then %>selected="selected"<% end %>>A Dead Simple VPN</option><% end %>
|
<% if nixio.fs.access("/usr/sbin/dsvpn") then %><option value="dsvpn" <% if uci:get("dsvpn","vpn","enable") == "1" then %>selected="selected"<% end %>>A Dead Simple VPN</option><% end %>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue