mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add back gateway for DHCP and fix get public IP and netstat
This commit is contained in:
parent
7165fb2df1
commit
35d65227ac
4 changed files with 29 additions and 8 deletions
|
@ -366,6 +366,14 @@ return L.view.extend({
|
|||
so.value(hosts[mac].ipv4);
|
||||
});
|
||||
|
||||
so = ss.options(form.value, 'gw', _('Gateway IPv4 Address'));
|
||||
so.rmempty = true;
|
||||
so.datatype = 'or(ip4addr,"ignore")';
|
||||
Object.keys(hosts).forEach(function(mac) {
|
||||
if (hosts[mac].ipv4)
|
||||
so.value(hosts[mac].ipv4);
|
||||
});
|
||||
|
||||
so = ss.option(form.Value, 'leasetime', _('Lease time'));
|
||||
so.rmempty = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue