1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-14 19:41:51 +00:00

Get IPv6 status from config

This commit is contained in:
Ycarus 2019-01-11 16:24:19 +01:00
parent 3b5fd8b2aa
commit 7afbb152ca

View file

@ -110,7 +110,7 @@ end
<div class="cbi-value">
<label class="cbi-value-title"><%:Enable IPv6%></label>
<div class="cbi-value-field">
<input class="cbi-input-checkbox" type="checkbox" name="enableipv6" value="1" <% if tonumber((luci.sys.exec("sysctl net.ipv6.conf.all.disable_ipv6")):match(" %d+")) == 0 then %>checked<% end %> />
<input class="cbi-input-checkbox" type="checkbox" name="enableipv6" value="1" <% if uci:get("openmptcprouter","settings","disable_ipv6") == 1 then %>checked<% end %> />
<br />
<div class="cbi-value-description">
<%:You should disable IPv6 here if server doesn't provide IPv6.%>