mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
29 lines
1.2 KiB
HTML
29 lines
1.2 KiB
HTML
<%+header%>
|
|
|
|
<% if stderr and #stderr > 0 then %><pre class="error"><%=pcdata(stderr)%></pre><% end %>
|
|
<form class="inline" method="post" action="<%=url('admin/system/openmptcprouter/settings_add')%>">
|
|
<div class="cbi-map">
|
|
<h2 name="content"><%:Advanced Settings%></h2>
|
|
<fieldset class="cbi-section" id="networks">
|
|
<legend><%:Networks settings%></legend>
|
|
<div class="cbi-section-descr"></div>
|
|
<div class="cbi-value">
|
|
<label class="cbi-value-title"><%:IPv4 TCP Keepalive time%></label>
|
|
<div class="cbi-value-field">
|
|
<input type="text" name="tcp_keepalive_time" class="cbi-input-text" value="<%=tonumber((luci.sys.exec("sysctl net.ipv4.tcp_keepalive_time")):match(" %d+"))%>">
|
|
</div>
|
|
</div>
|
|
<div class="cbi-value">
|
|
<label class="cbi-value-title"><%:Disable IPv6%></label>
|
|
<div class="cbi-value-field">
|
|
<input type="checkbox" name="disable_ipv6" class="cbi-input-checkbox" value="1" <% if tonumber((luci.sys.exec("sysctl net.ipv6.conf.all.disable_ipv6")):match(" %d+")) == 1 %>checked<% end %>>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
<div class="cbi-page-actions">
|
|
<input type="hidden" name="token" value="<%=token%>" />
|
|
<button class="btn" type="submit">Submit</button>
|
|
</div>
|
|
</form>
|
|
<%+footer%>
|