mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix IPv6 in settings page
This commit is contained in:
parent
223ce87a72
commit
ef535bc21f
2 changed files with 3 additions and 3 deletions
|
@ -505,7 +505,7 @@ function settings_add()
|
||||||
luci.sys.exec("sed -i 's:^net.ipv4.tcp_fastopen=[0-3]*:net.ipv4.tcp_fastopen=%s:' /etc/sysctl.d/zzz_openmptcprouter.conf" % tcp_fastopen)
|
luci.sys.exec("sed -i 's:^net.ipv4.tcp_fastopen=[0-3]*:net.ipv4.tcp_fastopen=%s:' /etc/sysctl.d/zzz_openmptcprouter.conf" % tcp_fastopen)
|
||||||
|
|
||||||
-- Disable IPv6
|
-- Disable IPv6
|
||||||
local disable_ipv6 = luci.http.formvalue("disable_ipv6") or 0
|
local disable_ipv6 = luci.http.formvalue("enableipv6") or "1"
|
||||||
set_ipv6_state(disable_ipv6)
|
set_ipv6_state(disable_ipv6)
|
||||||
|
|
||||||
-- Enable/disable obfs
|
-- Enable/disable obfs
|
||||||
|
|
|
@ -123,9 +123,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cbi-value">
|
<div class="cbi-value">
|
||||||
<label class="cbi-value-title"><%:Disable IPv6%></label>
|
<label class="cbi-value-title"><%:Enable IPv6%></label>
|
||||||
<div class="cbi-value-field">
|
<div class="cbi-value-field">
|
||||||
<input type="checkbox" name="disable_ipv6" class="cbi-input-checkbox" value="1" <% if luci.model.uci.cursor():get("openmptcprouter","settings","disable_ipv6") == 1 then %>checked<% end %>>
|
<input type="checkbox" name="enableipv6" class="cbi-input-checkbox" value="0" <% if luci.model.uci.cursor():get("openmptcprouter","settings","disable_ipv6") == 0 then %>checked<% end %>>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cbi-value">
|
<div class="cbi-value">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue